Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetAllCache ¶ added in v1.7.1
func ResetAllCache()
func ResetConnectionCache ¶
func ResetConnectionCache()
func ResetCredentialCache ¶
func ResetCredentialCache()
func ResetInMemoryCache ¶ added in v1.7.1
func ResetInMemoryCache()
Types ¶
type InMemoryCache ¶
type InMemoryCache struct {
// contains filtered or unexported fields
}
simple cache implemented using ristretto cache library
func GetCache ¶
func GetCache() *InMemoryCache
func GetConnectionCache ¶
func GetConnectionCache() *InMemoryCache
func GetCredentialCache ¶
func GetCredentialCache() *InMemoryCache
func (*InMemoryCache) Delete ¶
func (cache *InMemoryCache) Delete(key string)
func (*InMemoryCache) Get ¶
func (cache *InMemoryCache) Get(key string) (interface{}, bool)
func (*InMemoryCache) SetWithTTL ¶
func (cache *InMemoryCache) SetWithTTL(key string, value interface{}, ttl time.Duration) bool
Click to show internal directories.
Click to hide internal directories.