Documentation ¶
Index ¶
- type InProcCache
- type Memcache
- type Redis
- func (rd Redis) Close()
- func (rd Redis) Delete(key string) error
- func (rd Redis) Get(key string) ([]byte, error)
- func (rd Redis) Len() (int, error)
- func (rd Redis) Pop() ([]byte, error)
- func (rd Redis) PopWait(dur time.Duration) ([]byte, error)
- func (rd Redis) Push(data []byte) error
- func (rd Redis) Set(key string, data []byte, expireIn time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InProcCache ¶
type InProcCache struct { key.AsIsFormat // contains filtered or unexported fields }
Stores data in memory. Major use-case is for use on development machines
func NewInProcCache ¶
func NewInProcCache(expires time.Duration) InProcCache
func (InProcCache) Close ¶
func (c InProcCache) Close()
func (InProcCache) Delete ¶
func (c InProcCache) Delete(key string) error
type Memcache ¶
type Memcache struct { key.NoSpacesFormat // contains filtered or unexported fields }
func NewMemcache ¶
type Redis ¶
type Redis struct { key.AsIsFormat // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.