Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicCacher ¶
type BasicCacher interface { Prefix() string Has(key string) bool Get(key string, defaultValue ...interface{}) interface{} Pull(key string, defaultValue ...interface{}) interface{} Put(key string, value interface{}, future zone.Time) bool Add(key string, value interface{}, future zone.Time) bool Increment(key string, value int64) (incremented int64, success bool) Decrement(key string, value int64) (decremented int64, success bool) Forever(key string, value interface{}) bool Forget(key string) bool Close() error }
type ProtoCacheGetter ¶
type ProtoCacher ¶
type ProtoCacher interface { Ppull(key string, valuePtr proto.Message, defaultValuePtr ...proto.Message) error Pput(key string, valuePtr proto.Message, future zone.Time) bool Padd(key string, valuePtr proto.Message, future zone.Time) bool Pforever(key string, valuePtr proto.Message) bool ProtoCacheGetter }
Click to show internal directories.
Click to hide internal directories.