Documentation ¶
Index ¶
- type Cache
- type GenericCache
- type Lock
- type Locker
- type SerializedObjectCache
- func (c *SerializedObjectCache) Clear() error
- func (c *SerializedObjectCache) Get(key string, obj interface{}) (bool, error)
- func (c *SerializedObjectCache) GetUnset(key string, obj interface{}) (bool, error)
- func (c *SerializedObjectCache) Keys() ([]string, error)
- func (c *SerializedObjectCache) Set(key string, value interface{}, ttlSeconds ...int) error
- func (c *SerializedObjectCache) Touch(key string) error
- func (c *SerializedObjectCache) Unset(key string) error
- type StringCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericCache ¶
type SerializedObjectCache ¶
type SerializedObjectCache struct { Serializer message.Serializer StringCoding utils.StringCoding // contains filtered or unexported fields }
func New ¶
func New(backend StringCache, serializer ...message.Serializer) *SerializedObjectCache
func (*SerializedObjectCache) Clear ¶
func (c *SerializedObjectCache) Clear() error
func (*SerializedObjectCache) Get ¶
func (c *SerializedObjectCache) Get(key string, obj interface{}) (bool, error)
func (*SerializedObjectCache) GetUnset ¶
func (c *SerializedObjectCache) GetUnset(key string, obj interface{}) (bool, error)
func (*SerializedObjectCache) Keys ¶
func (c *SerializedObjectCache) Keys() ([]string, error)
func (*SerializedObjectCache) Set ¶
func (c *SerializedObjectCache) Set(key string, value interface{}, ttlSeconds ...int) error
func (*SerializedObjectCache) Touch ¶
func (c *SerializedObjectCache) Touch(key string) error
func (*SerializedObjectCache) Unset ¶
func (c *SerializedObjectCache) Unset(key string) error
type StringCache ¶
type StringCache = GenericCache[string]
Click to show internal directories.
Click to hide internal directories.