Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetConnectionCache ¶ added in v1.0.0
func ResetConnectionCache()
func ResetCredentialCache ¶ added in v0.3.0
func ResetCredentialCache()
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 ¶ added in v1.0.0
func GetConnectionCache() *InMemoryCache
func GetCredentialCache ¶ added in v0.3.0
func GetCredentialCache() *InMemoryCache
func InMemoryInitialize ¶
func InMemoryInitialize(config *ristretto.Config) *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.