Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { // Get returns the value associated with the provided key, if any, and a boolean value representing if a value was associated with the key. Get(key string) (string, bool, error) // Remember stores a value and associates it to a key for X seconds after which it expires. Remember(key string, value interface{}, duration time.Duration) error // Forget removes the key-value pair. Forget(key string) error // Increment increments the value of a key by 1. Increment(key string) (int64, error) // Expire sets the expiration time for a key. Expire(key string, duration time.Duration) error // ForgetAll removes all key-value that match the given pattern ForgetAll(keyPattern string) (int, error) // Keys get all keys match given pattern Keys(keyPattern string) ([]string, error) }
Click to show internal directories.
Click to hide internal directories.