Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlattenHash = StoreType("flatten-hash") Serialized = StoreType("serialized") Redigo = ClientType("redigo") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientType ¶
type ClientType string
type Config ¶
type Config struct { DatabaseIdx int PrimaryKey string SuffixScoreSetKey string // contains filtered or unexported fields }
func CreateConfig ¶
func CreateConfig(ops ...ConfigOption) Config
type ConfigOption ¶
type ConfigOption func(*Config)
func DatabaseIdx ¶
func DatabaseIdx(databaseIdx int) ConfigOption
func PrimaryKey ¶
func PrimaryKey(PrimaryKey string) ConfigOption
func SuffixScoreSetKey ¶
func SuffixScoreSetKey(suffixScoreSetKey string) ConfigOption
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool contains dockertest and redis connection pool
func (*Pool) GetContext ¶
GetContext gets a connection with redis
type RediStruct ¶
type RediStruct interface { // Permission() Permission StoreType() StoreType PrimaryKey() string KeyDelimiter() string ScoreMap() map[string]interface{} Expire() time.Duration DatabaseIdx() int Serialized() []byte Deserialized([]byte) }
RediStruct is an interface for hundling redistructs
Click to show internal directories.
Click to hide internal directories.