Documentation ¶ Index ¶ type Client func NewCache(config Config) Client func (c *Client) GetData(hash string, obj interface{}) error func (c *Client) SaveData(filename string, data interface{}) error type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { Config Config } func NewCache ¶ func NewCache(config Config) Client func (*Client) GetData ¶ func (c *Client) GetData(hash string, obj interface{}) error func (*Client) SaveData ¶ func (c *Client) SaveData(filename string, data interface{}) error type Config ¶ type Config struct { // Were the *.gob files will be stored Path string // Renew cache when file is older than TTL (in hours) TTL int64 // Add custom logger, default is *log.Logger from GO Logger *log.Logger } Source Files ¶ View all Source files gobcache.go types.go utils.go Click to show internal directories. Click to hide internal directories.