Documentation
¶
Index ¶
- Variables
- type RotCache
- func (c *RotCache) Get(key string) ([]byte, error)
- func (c *RotCache) GetString(key string) (string, error)
- func (c *RotCache) IGet(key int64) ([]byte, error)
- func (c *RotCache) IGetString(key int64) (s string, err error)
- func (c *RotCache) ISet(key int64, val []byte) error
- func (c *RotCache) ISetString(key int64, val string) error
- func (c *RotCache) Prepare()
- func (c *RotCache) Rotate()
- func (c *RotCache) Set(key string, val []byte) error
- func (c *RotCache) SetString(key, val string) error
- func (c *RotCache) UGet(key uint64) ([]byte, error)
- func (c *RotCache) UGetString(key uint64) (s string, err error)
- func (c *RotCache) USet(key uint64, val []byte) error
- func (c *RotCache) USetString(key uint64, val string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type RotCache ¶
type RotCache struct {
// Keys hasher. Uses to convert string keys to hashes.
Hasher hash.Hasher
// contains filtered or unexported fields
}
RotCache is a rotating cache implementation.
func (*RotCache) IGetString ¶
IGetString get stored value as string using int64 key.
func (*RotCache) ISetString ¶
ISetString sets string value with int64 key.
func (*RotCache) UGetString ¶
UGetString get stored value as string using uint64 key.
Click to show internal directories.
Click to hide internal directories.