Documentation ¶
Index ¶
- type CacheDB
- func (r *CacheDB) Delete(key string) (bool, error)
- func (r *CacheDB) Exists(key string) bool
- func (r *CacheDB) Get(key string) ([]byte, error)
- func (r *CacheDB) GetClient() redis.Conn
- func (r *CacheDB) LikeDeletes(key string) error
- func (r *CacheDB) SetString(key string, data string, time int) error
- type DocDB
- func (db *DocDB) Database(dbname string) *mongo.Database
- func (db *DocDB) GetClient() *mongo.Client
- func (db *DocDB) ListIndexes(database, collection string)
- func (db *DocDB) PopulateIndex(database, collection, key string, sort int32, unique bool)
- func (db *DocDB) PopulateMultiIndex(database, collection string, keys []string, sorts []int32, unique bool)
- func (db *DocDB) PopulateTTLIndex(database, collection, key string, sort int32, unique bool, ttl int32)
- type IDatabase
- type RDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheDB ¶
type CacheDB struct { IDatabase // contains filtered or unexported fields }
func ConnectWithCacheDB ¶
func ConnectWithCacheDB(config *settings.CacheDbConf) (*CacheDB, error)
func (*CacheDB) LikeDeletes ¶
type DocDB ¶
type DocDB struct { IDatabase // contains filtered or unexported fields }
func (*DocDB) ListIndexes ¶
func (*DocDB) PopulateIndex ¶
func (*DocDB) PopulateMultiIndex ¶
Click to show internal directories.
Click to hide internal directories.