package
1.20240719.1
Repository: https://github.com/blend/go-sdk.git
Documentation: pkg.go.dev

# Functions

New returns a new client.
NewEvent creates a new query event.
NewEventFilter returns a new event filter.
NewEventListener returns a new listener for events.
NewMockClient returns a new mock client with a given capacity.
OptAddr sets the redis address.
OptAuthPassword sets the redis auth password.
OptAuthUser sets the redis auth user.
OptConfig sets the redis config.
OptConnectTimeout sets the redis connect timeout.
OptDB sets the redis db.
OptEventAddr sets a field on the event.
OptEventArgs sets a field on the event.
OptEventAuthUser sets a field on the event.
OptEventDB sets a field on the event.
OptEventElapsed sets a field on the event.
OptEventErr sets a field on the event.
OptEventNetwork sets a field on the event.
OptEventOp sets a field on the event.
OptLog sets the logger.
OptNetwork sets the redis network.
OptTimeout sets the redis general timeout.
OptTracer sets the tracer.

# Constants

Defaults.
Defaults.
Defaults.
Defaults.
Errors.
Logger flags.
String Operations.
Connection Operations.
String Operations.
String Operations.
String Operations.
String Operations.
Connection Operations.
Connection Operations.
Connection Operations.
Connection Operations.
Connection Operations.
Connection Operations.
Connection Operations.
Connection Operations.
Connection Operations.
Connection Operations.
Connection Operations.
Connection Operations.
Connection Operations.
Connection Operations.
OpCOPY copies the value stored at the source key to the destination key.
String Operations.
String Operations.
OpDel removes the specified keys.
OpDUMP serialies the value stored at key in a Redis-specific format and return it to the user.
Connection Operations.
OpEXISTS returns if key exists.
OpExpire sets a timeout on key.
Key Operations.
OpGet gets the value of key.
String Operations.
String Operations.
OpGETEX gets the value of key and optionally set its expiration.
String Operations.
String Operations.
Hash Operations.
Connection Operations.
Hash Operations.
Hash Operations.
Hash Operations.
Hash Operations.
Hash Operations.
Hash Operations.
Hash Operations.
Hash Operations.
Hash Operations.
Hash Operations.
Hash Operations.
Hash Operations.
Hash Operations.
Hash Operations.
Hash Operations.
String Operations.
String Operations.
String Operations.
Key Operations.
String Operations.
Key Operations.
Key Operations.
String Operations.
String Operations.
Key Operations.
Key Operations.
Key Operations.
Key Operations.
Connection Operations.
String Operations.
Key Operations.
Connection Operations.
Key Operations.
Key Operations.
Key Operations.
Connection Operations.
Key Operations.
OpSADD adds the specified members to the set stored at key.
Key Operations.
OpSCARD returns the set cardinality (number of elements) of the set stored at key.
OpSDIFF returns the members of the set resulting from the difference between the first set and all the successive sets.
OpSDIFFSTORE is command is equal to SDIFF, but instead of returning the resulting set, it is stored in destination.
Connection Operations.
String Operations.
String Operations.
OpSETEX sets a key to hold the string value and set key to timeout after a given number of seconds.
String Operations.
String Operations.
OpSINTER returns the members of the set resulting from the intersection of all the given sets.
OpSINTERSTORE is equal to SINTER, but instead of returning the resulting set, it is stored in destination.
OpSISMEMBER returns if member is a member of the set stored at key.
OpSMEMBERS returns all the members of the set value stored at key.
OpSMISMEMBER returns whether each member is a member of the set stored at key.
OpSMOVE moves a member from the set at source to the set at destination.
Key Operations.
OpSPOP removes and returns one or more random members from the set value store at key.
OpSRANDMEMBER returns a random element from the set value stored at key, or given a count, returns an array of distinct elements.
OpSREM removes the specified members from the set stored at key.
OpSSCAN is used to incrementally iterate over a collection of elements, specifically the set type.
String Operations.
String Operations.
OpSUNION returns the members of the set resulting from the union of all the given sets.
OpSUNIONSTORE is equal to SUNION, but instead of returning the resulting set, it is stored in destination.
Key Operations.
Key Operations.
Key Operations.
Key Operations.
Key Operations.

# Structs

Config is the config type for the redis client.
Event represents a call to redis.
MockClient is a mocked client.
MockClientOp is a mocked client op.
Operation encapsulates a redis command to be made to the client.
RadixClient is a wrapping client for the underling radix redis driver.

# Interfaces

Client is the basic interface that a redis client should implement.
RadixDoCloser is an thin implementation of the radix client.
RadixNetDialer is a dialer for radix connections.
TraceFinisher is a type that can finish traces.
Tracer is a type that can implement traces.

# Type aliases

EventOption mutates an event.
Option mutates a radix client.