Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicCache ¶
type BasicCache 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 time.Duration) bool Add(key string, value interface{}, future time.Duration) 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 SetNx(key string, value string, future time.Duration) bool GetString(key string) string Close() error }
type ProtoCache ¶
type ProtoCache interface { Ppull(key string, valuePtr proto.Message, defaultValuePtr ...proto.Message) error Pput(key string, valuePtr proto.Message, future time.Duration) bool Padd(key string, valuePtr proto.Message, future time.Duration) bool Pforever(key string, valuePtr proto.Message) bool ProtoCacheGetter }
Click to show internal directories.
Click to hide internal directories.