Versions in this module Expand all Collapse all v1 v1.0.0 Mar 7, 2026 Changes in this version + type FileCache struct + Path string + func NewFileCache(path string) *FileCache + func (c *FileCache) Delete(key string) error + func (c *FileCache) Flush() error + func (c *FileCache) Get(key string) (string, error) + func (c *FileCache) Set(key, value string, ttl time.Duration) error + type MemoryCache struct + func NewMemoryCache() *MemoryCache + func (c *MemoryCache) Delete(key string) error + func (c *MemoryCache) Flush() error + func (c *MemoryCache) Get(key string) (string, error) + func (c *MemoryCache) Set(key, value string, ttl time.Duration) error + type RedisCache struct + Client *redis.Client + func NewRedisCache(client *redis.Client) *RedisCache + func (c *RedisCache) Delete(key string) error + func (c *RedisCache) Flush() error + func (c *RedisCache) Get(key string) (string, error) + func (c *RedisCache) Set(key, value string, ttl time.Duration) error + type Store interface + Delete func(key string) error + Flush func() error + Get func(key string) (string, error) + Set func(key string, value string, ttl time.Duration) error + func NewStore(driver, prefix string) (Store, error) Other modules containing this package github.com/RAiWorks/RapidGo/v2