Documentation
¶
Index ¶
- type MemoryStore
- func (self *MemoryStore) ClearExpired()
- func (self *MemoryStore) Delete(key string)
- func (self *MemoryStore) Exists(key string) bool
- func (self *MemoryStore) Get(key string) (map[string]interface{}, error)
- func (self *MemoryStore) GetExpireTime(key string) time.Time
- func (self *MemoryStore) Set(key string, data map[string]interface{}, expire time.Duration) error
- func (self *MemoryStore) SetExpireTime(key string, duration time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func New ¶
func New() *MemoryStore
func (*MemoryStore) ClearExpired ¶
func (self *MemoryStore) ClearExpired()
func (*MemoryStore) Delete ¶
func (self *MemoryStore) Delete(key string)
func (*MemoryStore) Exists ¶
func (self *MemoryStore) Exists(key string) bool
func (*MemoryStore) GetExpireTime ¶
func (self *MemoryStore) GetExpireTime(key string) time.Time
func (*MemoryStore) SetExpireTime ¶
func (self *MemoryStore) SetExpireTime(key string, duration time.Duration)
Click to show internal directories.
Click to hide internal directories.