Documentation ¶
Index ¶
- type CacheDriver
- func (mc *CacheDriver) Get(key string, struc interface{}) bool
- func (mc *CacheDriver) GetPointer(key string) (interface{}, bool)
- func (mc *CacheDriver) Len() int
- func (mc *CacheDriver) Remove(key string)
- func (mc *CacheDriver) Set(key string, value interface{}, ttl time.Duration) error
- func (mc *CacheDriver) SetPointer(key string, value interface{}, ttl time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheDriver ¶
type CacheDriver struct{}
func StartInstance ¶
func StartInstance() *CacheDriver
func (*CacheDriver) Get ¶
func (mc *CacheDriver) Get(key string, struc interface{}) bool
func (*CacheDriver) GetPointer ¶
func (mc *CacheDriver) GetPointer(key string) (interface{}, bool)
func (*CacheDriver) Len ¶
func (mc *CacheDriver) Len() int
func (*CacheDriver) Remove ¶
func (mc *CacheDriver) Remove(key string)
func (*CacheDriver) Set ¶
func (mc *CacheDriver) Set(key string, value interface{}, ttl time.Duration) error
func (*CacheDriver) SetPointer ¶
func (mc *CacheDriver) SetPointer(key string, value interface{}, ttl time.Duration) error
Click to show internal directories.
Click to hide internal directories.