Documentation ¶
Index ¶
- type Cache
- func (c *Cache) Close() error
- func (c *Cache) CompareAndSet(key string, value int64) error
- func (c *Cache) Delete(key string) error
- func (c *Cache) Get(key string) (int64, bool)
- func (c *Cache) GetBytes(key string) ([]byte, bool)
- func (c *Cache) GetInterface(key string) (model.InterfaceTransferObject, bool)
- func (c *Cache) GetInterfaceNames(key string) ([]string, bool)
- func (c *Cache) NeedToUpdate(key string, value int64) bool
- func (c *Cache) Set(key string, value int64) error
- func (c *Cache) SetBytes(key string, value []byte) error
- func (c *Cache) SetInterface(key string, value model.InterfaceTransferObject) error
- func (c *Cache) SetInterfaceNames(key string, value []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) GetInterface ¶ added in v2.9.0
func (c *Cache) GetInterface(key string) (model.InterfaceTransferObject, bool)
func (*Cache) GetInterfaceNames ¶ added in v2.9.0
func (*Cache) SetInterface ¶ added in v2.9.0
func (c *Cache) SetInterface(key string, value model.InterfaceTransferObject) error
Click to show internal directories.
Click to hide internal directories.