Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { // Data the real user data Data []byte // ExpireTime the expiration time of the data ExpireTime *time.Time }
Data the store data object
type Store ¶
type Store interface { // Get get cache data Get(k string) *Data // Set set cache data with expiration time Set(k string, data []byte, expiration time.Duration) error // Remove remove the cache data Remove(k string) error // Close close the store component Close() error }
Store the cache store interface, it must be concurrency safe
Click to show internal directories.
Click to hide internal directories.