Documentation ¶
Index ¶
- func GetClient() *mongo.Client
- func Initialize() error
- type MongoDB
- func (r MongoDB) Close() error
- func (r MongoDB) Delete(key string) error
- func (r MongoDB) Exists(key string) (bool, error)
- func (r MongoDB) Expire(key string, seconds int) error
- func (r MongoDB) Flush() error
- func (r MongoDB) Get(key string) (interface{}, error)
- func (r MongoDB) Ping() error
- func (r MongoDB) Set(key string, value interface{}) error
- func (r MongoDB) TTL(key string) (int, error)
- type Redis
- func (r Redis) Close() error
- func (r Redis) Delete(key string) error
- func (r Redis) Exists(key string) (bool, error)
- func (r Redis) Expire(key string, seconds int) error
- func (r Redis) Flush() error
- func (r Redis) Get(key string) (interface{}, error)
- func (r Redis) Ping() error
- func (r Redis) Set(key string, value interface{}) error
- func (r Redis) TTL(key string) (int, error)
- type RedisVersionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize() error
Types ¶
type RedisVersionType ¶
func GetRedisClient ¶
func GetRedisClient() RedisVersionType
Click to show internal directories.
Click to hide internal directories.