Documentation ¶
Overview ¶
IronCache (cloud k/v store) client library
Index ¶
- Variables
- type Cache
- func (c *Cache) Add(key string, value ...interface{}) (err error)
- func (c *Cache) Clear() (err error)
- func (c *Cache) Delete(key string) (err error)
- func (c *Cache) Get(key string) (value interface{}, err error)
- func (c *Cache) GetMeta(key string) (value map[string]interface{}, err error)
- func (c *Cache) Increment(key string, amount int64) (value interface{}, err error)
- func (c *Cache) ListCaches(page, perPage int) (caches []*Cache, err error)
- func (c *Cache) Put(key string, item *Item) (err error)
- func (c *Cache) Replace(key string, value ...interface{}) (err error)
- func (c *Cache) ServerVersion() (version string, err error)
- func (c *Cache) Set(key string, value interface{}, ttl ...int) (err error)
- type Codec
- type Item
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Cache ¶
func New ¶
New returns a struct ready to make requests with. The cacheName argument is used as namespace.
func (*Cache) ListCaches ¶
func (*Cache) ServerVersion ¶
type Codec ¶
type Item ¶
type Item struct { // Value is the Item's value Value interface{} // Object is the Item's value for use with a Codec. Object interface{} // Number of seconds until expiration. The zero value defaults to 7 days, // maximum is 30 days. Expiration time.Duration // Caches item only if the key is currently cached. Replace bool // Caches item only if the key isn't currently cached. Add bool }
Click to show internal directories.
Click to hide internal directories.