Documentation ¶
Index ¶
- Constants
- type Cache
- func (c *Cache) Check(k string) bool
- func (c *Cache) Clear()
- func (c *Cache) Close()
- func (c *Cache) Count() int64
- func (c *Cache) Get(k string, obj interface{}) (interface{}, bool)
- func (c *Cache) GetMode() string
- func (c *Cache) HasError() bool
- func (c *Cache) Remove(k string)
- func (c *Cache) Set(k string, obj interface{})
- type CacheAerospike
- func (c *CacheAerospike) Check(key string) bool
- func (c *CacheAerospike) Clear()
- func (c *CacheAerospike) Close()
- func (c *CacheAerospike) Count() int64
- func (c *CacheAerospike) Get(key string, obj interface{}) (interface{}, bool)
- func (c *CacheAerospike) GetAll2JSON(x interface{}) []byte
- func (c *CacheAerospike) GetMode() string
- func (c *CacheAerospike) HasError() bool
- func (c *CacheAerospike) Remove(key string)
- func (c *CacheAerospike) Set(key string, x interface{})
- type CacheConfig
- type CacheMap
- func (c *CacheMap) Check(k string) bool
- func (c *CacheMap) Clear()
- func (c *CacheMap) ClearOld()
- func (c *CacheMap) Count() int64
- func (c *CacheMap) Get(k string, obj interface{}) (interface{}, bool)
- func (c *CacheMap) GetAll2JSON(x interface{}) []byte
- func (c *CacheMap) GetMode() string
- func (c *CacheMap) HasError() bool
- func (c *CacheMap) Remove(k string)
- func (c *CacheMap) Set(k string, x interface{})
- type CacheMutexMap
- func (c *CacheMutexMap) Check(k string) bool
- func (c *CacheMutexMap) Clear()
- func (c *CacheMutexMap) ClearOld()
- func (c *CacheMutexMap) Count() int64
- func (c *CacheMutexMap) Get(k string, obj interface{}) (interface{}, bool)
- func (c *CacheMutexMap) GetAll2JSON(x interface{}) []byte
- func (c *CacheMutexMap) GetMode() string
- func (c *CacheMutexMap) HasError() bool
- func (c *CacheMutexMap) Remove(k string)
- func (c *CacheMutexMap) Set(k string, x interface{})
- type CachePostgreSQL
- func (c *CachePostgreSQL) Check(key string) bool
- func (c *CachePostgreSQL) Clear()
- func (c *CachePostgreSQL) Close()
- func (c *CachePostgreSQL) Count() int64
- func (c *CachePostgreSQL) Get(key string, obj interface{}) (interface{}, bool)
- func (c *CachePostgreSQL) GetAll2JSON(x interface{}) []byte
- func (c *CachePostgreSQL) GetMode() string
- func (c *CachePostgreSQL) HasError() bool
- func (c *CachePostgreSQL) Remove(key string)
- func (c *CachePostgreSQL) Set(key string, x interface{})
- type CacheRedis
- func (c *CacheRedis) Check(key string) bool
- func (c *CacheRedis) Clear()
- func (c *CacheRedis) Close()
- func (c *CacheRedis) Count() int64
- func (c *CacheRedis) Get(key string, obj interface{}) (interface{}, bool)
- func (c *CacheRedis) GetAll2JSON(x interface{}) []byte
- func (c *CacheRedis) GetMode() string
- func (c *CacheRedis) GetStr(key string) (string, bool)
- func (c *CacheRedis) HasError() bool
- func (c *CacheRedis) Remove(key string)
- func (c *CacheRedis) Set(key string, x interface{})
- func (c *CacheRedis) SetStr(key string, x string)
- type CacheSyncMap
- func (c *CacheSyncMap) Check(k string) bool
- func (c *CacheSyncMap) Clear()
- func (c *CacheSyncMap) ClearOld()
- func (c *CacheSyncMap) Count() int64
- func (c *CacheSyncMap) Get(k string, obj interface{}) (interface{}, bool)
- func (c *CacheSyncMap) GetAll2JSON(x interface{}) []byte
- func (c *CacheSyncMap) GetMode() string
- func (c *CacheSyncMap) HasError() bool
- func (c *CacheSyncMap) Remove(k string)
- func (c *CacheSyncMap) Set(k string, x interface{})
- type ICache
- type Item
- type ItemPostgreSQL
- type ItemStr
Constants ¶
View Source
const ( // For use with functions that take an expiration time. NoExpiration time.Duration = -1 // For use with functions that take an expiration time. Equivalent to // passing in the same expiration duration as was given to New() or // NewFrom() when the cache was created (e.g. 5 minutes.) DefaultExpiration time.Duration = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheAerospike ¶
type CacheAerospike struct { Cache MaxConnections int URL string Namespace string // contains filtered or unexported fields }
func (*CacheAerospike) Check ¶
func (c *CacheAerospike) Check(key string) bool
func (*CacheAerospike) Clear ¶
func (c *CacheAerospike) Clear()
func (*CacheAerospike) Close ¶
func (c *CacheAerospike) Close()
func (*CacheAerospike) Count ¶
func (c *CacheAerospike) Count() int64
func (*CacheAerospike) Get ¶
func (c *CacheAerospike) Get(key string, obj interface{}) (interface{}, bool)
func (*CacheAerospike) GetAll2JSON ¶
func (c *CacheAerospike) GetAll2JSON(x interface{}) []byte
func (*CacheAerospike) GetMode ¶
func (c *CacheAerospike) GetMode() string
func (*CacheAerospike) HasError ¶
func (c *CacheAerospike) HasError() bool
func (*CacheAerospike) Remove ¶
func (c *CacheAerospike) Remove(key string)
func (*CacheAerospike) Set ¶
func (c *CacheAerospike) Set(key string, x interface{})
type CacheConfig ¶
type CacheMap ¶
type CacheMap struct { Cache // contains filtered or unexported fields }
func (*CacheMap) GetAll2JSON ¶
type CacheMutexMap ¶
type CacheMutexMap struct { Cache // contains filtered or unexported fields }
func (*CacheMutexMap) Check ¶
func (c *CacheMutexMap) Check(k string) bool
func (*CacheMutexMap) Clear ¶
func (c *CacheMutexMap) Clear()
func (*CacheMutexMap) ClearOld ¶
func (c *CacheMutexMap) ClearOld()
func (*CacheMutexMap) Count ¶
func (c *CacheMutexMap) Count() int64
func (*CacheMutexMap) Get ¶
func (c *CacheMutexMap) Get(k string, obj interface{}) (interface{}, bool)
func (*CacheMutexMap) GetAll2JSON ¶
func (c *CacheMutexMap) GetAll2JSON(x interface{}) []byte
func (*CacheMutexMap) GetMode ¶
func (c *CacheMutexMap) GetMode() string
func (*CacheMutexMap) HasError ¶
func (c *CacheMutexMap) HasError() bool
func (*CacheMutexMap) Remove ¶
func (c *CacheMutexMap) Remove(k string)
func (*CacheMutexMap) Set ¶
func (c *CacheMutexMap) Set(k string, x interface{})
type CachePostgreSQL ¶
type CachePostgreSQL struct { Cache MaxConnections int URL string DBName string TableName string // contains filtered or unexported fields }
func (*CachePostgreSQL) Check ¶
func (c *CachePostgreSQL) Check(key string) bool
func (*CachePostgreSQL) Clear ¶
func (c *CachePostgreSQL) Clear()
func (*CachePostgreSQL) Close ¶
func (c *CachePostgreSQL) Close()
func (*CachePostgreSQL) Count ¶
func (c *CachePostgreSQL) Count() int64
func (*CachePostgreSQL) Get ¶
func (c *CachePostgreSQL) Get(key string, obj interface{}) (interface{}, bool)
func (*CachePostgreSQL) GetAll2JSON ¶
func (c *CachePostgreSQL) GetAll2JSON(x interface{}) []byte
func (*CachePostgreSQL) GetMode ¶
func (c *CachePostgreSQL) GetMode() string
func (*CachePostgreSQL) HasError ¶
func (c *CachePostgreSQL) HasError() bool
func (*CachePostgreSQL) Remove ¶
func (c *CachePostgreSQL) Remove(key string)
func (*CachePostgreSQL) Set ¶
func (c *CachePostgreSQL) Set(key string, x interface{})
type CacheRedis ¶
type CacheRedis struct { Cache MaxConnections int URL string // contains filtered or unexported fields }
func (*CacheRedis) Check ¶
func (c *CacheRedis) Check(key string) bool
func (*CacheRedis) Clear ¶
func (c *CacheRedis) Clear()
func (*CacheRedis) Close ¶
func (c *CacheRedis) Close()
func (*CacheRedis) Count ¶
func (c *CacheRedis) Count() int64
func (*CacheRedis) Get ¶
func (c *CacheRedis) Get(key string, obj interface{}) (interface{}, bool)
func (*CacheRedis) GetAll2JSON ¶
func (c *CacheRedis) GetAll2JSON(x interface{}) []byte
func (*CacheRedis) GetMode ¶
func (c *CacheRedis) GetMode() string
func (*CacheRedis) HasError ¶
func (c *CacheRedis) HasError() bool
func (*CacheRedis) Remove ¶
func (c *CacheRedis) Remove(key string)
func (*CacheRedis) Set ¶
func (c *CacheRedis) Set(key string, x interface{})
func (*CacheRedis) SetStr ¶
func (c *CacheRedis) SetStr(key string, x string)
type CacheSyncMap ¶
type CacheSyncMap struct { Cache // contains filtered or unexported fields }
func (*CacheSyncMap) Check ¶
func (c *CacheSyncMap) Check(k string) bool
func (*CacheSyncMap) Clear ¶
func (c *CacheSyncMap) Clear()
func (*CacheSyncMap) ClearOld ¶
func (c *CacheSyncMap) ClearOld()
func (*CacheSyncMap) Count ¶
func (c *CacheSyncMap) Count() int64
func (*CacheSyncMap) Get ¶
func (c *CacheSyncMap) Get(k string, obj interface{}) (interface{}, bool)
func (*CacheSyncMap) GetAll2JSON ¶
func (c *CacheSyncMap) GetAll2JSON(x interface{}) []byte
func (*CacheSyncMap) GetMode ¶
func (c *CacheSyncMap) GetMode() string
func (*CacheSyncMap) HasError ¶
func (c *CacheSyncMap) HasError() bool
func (*CacheSyncMap) Remove ¶
func (c *CacheSyncMap) Remove(k string)
func (*CacheSyncMap) Set ¶
func (c *CacheSyncMap) Set(k string, x interface{})
type ICache ¶
type ItemPostgreSQL ¶
Click to show internal directories.
Click to hide internal directories.