package
0.0.0-20240504161408-c9f628510f41
Repository: https://github.com/hanzug/gos.git
Documentation: pkg.go.dev

# Functions

GetInvertedIndexTokenDocIds 获取缓存的结果.
InitRedis 在中间件中初始化redis链接.
ListInvertedIndexToken 获取用户搜索的历史记录.
ListInvertedPath 把存放在redis的信息放到path中.
PushInvertedIndexToken 存储用户搜索的历史记录 doc ids // TODO:后面嵌入LRU.
PushInvertedPath 把存放db的path信息放到redis中.
SetInvertedIndexTokenDocIds 缓存token对应的倒排索引 // TODO:后面嵌入LRU.

# Constants

InvertedIndexDbPathKey 存放倒排索引的路径.
QueryTokenDocIds 搜索过的token的doc ids query:term --> doc ids.
No description provided by the author
TireTreeDbPathKey 存放tire tree树的路径.
UserQueryToken 用户搜索过的token query:user_id --> term.

# Variables

RedisClient Redis缓存客户端单例.
No description provided by the author