Documentation ¶
Index ¶
- type CompiledRedisScript
- func (this *CompiledRedisScript) Args(args *RedisScriptArguments) ([]interface{}, error)
- func (this *CompiledRedisScript) Keys(args *RedisScriptArguments) []string
- func (this *CompiledRedisScript) Run(ctx context.Context, client *redis.Client, args *RedisScriptArguments) *redis.Cmd
- func (this *CompiledRedisScript) RunDebug(ctx context.Context, client *redis.Client, args *RedisScriptArguments) *redis.Cmd
- func (this *CompiledRedisScript) String() string
- type RedisKey
- type RedisKeyValueGeneratorFunc
- type RedisScript
- type RedisScriptArguments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompiledRedisScript ¶
type CompiledRedisScript struct {
// contains filtered or unexported fields
}
func CompileRedisScripts ¶
func CompileRedisScripts(scripts []*RedisScript, keys []*RedisKey) (*CompiledRedisScript, error)
func (*CompiledRedisScript) Args ¶
func (this *CompiledRedisScript) Args(args *RedisScriptArguments) ([]interface{}, error)
func (*CompiledRedisScript) Keys ¶
func (this *CompiledRedisScript) Keys(args *RedisScriptArguments) []string
func (*CompiledRedisScript) Run ¶
func (this *CompiledRedisScript) Run(ctx context.Context, client *redis.Client, args *RedisScriptArguments) *redis.Cmd
func (*CompiledRedisScript) RunDebug ¶
func (this *CompiledRedisScript) RunDebug(ctx context.Context, client *redis.Client, args *RedisScriptArguments) *redis.Cmd
func (*CompiledRedisScript) String ¶
func (this *CompiledRedisScript) String() string
type RedisKey ¶
type RedisKey struct {
// contains filtered or unexported fields
}
func NewDynamicKey ¶
func NewDynamicKey(id string, generator RedisKeyValueGeneratorFunc) *RedisKey
func NewStaticKey ¶
func (*RedisKey) Value ¶
func (this *RedisKey) Value(args *RedisScriptArguments) string
type RedisKeyValueGeneratorFunc ¶
type RedisKeyValueGeneratorFunc func(args *RedisScriptArguments) string
type RedisScript ¶
type RedisScript struct {
// contains filtered or unexported fields
}
func NewRedisScript ¶
func NewRedisScript(keys []string, args []string, scriptText string) *RedisScript
func (*RedisScript) Args ¶
func (this *RedisScript) Args() []string
func (*RedisScript) Keys ¶
func (this *RedisScript) Keys() []string
func (*RedisScript) String ¶
func (this *RedisScript) String() string
type RedisScriptArguments ¶
type RedisScriptArguments map[string]interface{}
Click to show internal directories.
Click to hide internal directories.