Documentation
¶
Index ¶
- type Storage
- func (s *Storage) CloseConnection() (err error)
- func (s *Storage) Expire(key string, expiration time.Duration) (err error)
- func (s *Storage) Get(key string) (value string, err error)
- func (s *Storage) GetArticleCache(key string) (title string, body string, creationDate string, username string, err error)
- func (s *Storage) GetDel(key string) (value string, err error)
- func (s *Storage) GetUserCache(key string) (name string, err error)
- func (s *Storage) SetArticleCache(key string, title string, body string, creationDate string, username string) (err error)
- func (s *Storage) SetEx(key string, value string, expiration time.Duration) (err error)
- func (s *Storage) SetUserCache(key string, name string) (err error)
- func (s *Storage) TTL(key string) (ttl time.Duration, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
Client *redis.Client
}
func NewStorage ¶
func (*Storage) CloseConnection ¶
func (*Storage) GetArticleCache ¶
func (*Storage) SetArticleCache ¶
Click to show internal directories.
Click to hide internal directories.