Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotASlice is used when a value is not castable into a slice. ErrNotASlice = errors.New("value is not a slice") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client = redis.Cmdable
A Client defines all client Redis actions (Client or ClusterClient).
type Script ¶
type Script interface { // Source returns the script data. Source() string // Hash returns the SHA1 of the script. Hash() string }
A Script is a set of custom atomic actions to perform in the scache.
type Value ¶
type Value interface { // IsNil returns true if the value is nil. IsNil() bool // Float32 tries to convert into float32. Float32() (float32, error) // MustFloat32 converts into float32 or panic. MustFloat32() float32 // Float64 tries to convert into float64. Float64() (float64, error) // MustFloat64 converts into float64 or panic. MustFloat64() float64 // Int tries to convert into int. Int() (int, error) // MustInt converts into int or panic. MustInt() int // Int64 tries to convert into int64. Int64() (int64, error) // MustInt64 converts into int64 or panic. MustInt64() int64 // Uint64 tries to convert into uint64. Uint64() (uint64, error) // MustUint64 converts into uint64 or panic. MustUint64() uint64 // Bytes tries to convert into []bytes. Bytes() []byte // String tries to convert into string. String() string // Values tries to convert into []Value. Values() ([]Value, error) // MustValues converts into []Value or panic. MustValues() []Value }
A Value is an agnostic data converter. The conversion is based on your software knowledge.
Click to show internal directories.
Click to hide internal directories.