Documentation
¶
Index ¶
- Variables
- type Cache
- func (c *Cache) AddItemToSet(key string, value string) error
- func (c *Cache) Check() error
- func (c *Cache) EXPIRE(key string, seconds int) error
- func (c *Cache) Exists(key string) (bool, error)
- func (c *Cache) IsItemInSet(key string, value string) (bool, error)
- func (c *Cache) Read(key string) (string, error)
- func (c *Cache) ReadSet(key string) ([]string, error)
- func (c *Cache) ReadWithTime(key string) (v string, t int64, err error)
- func (c *Cache) RemoveItemFromSet(key string, value string) error
- func (c *Cache) Write(key, value string) error
- func (c *Cache) WriteWithTTL(key, value string, ttl int) error
- func (c *Cache) WriteWithTime(key, value string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNil = errors.New("(nil)")
ErrNil indicates that a reply value is nil.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache describes connection to Cache server
func (*Cache) ReadWithTime ¶
func (*Cache) WriteWithTime ¶
Click to show internal directories.
Click to hide internal directories.