package
0.0.0-20221114033115-cfff8824b1e9
Repository: https://github.com/1ulang/zero-trust-control.git
Documentation: pkg.go.dev
# Functions
*
设置缓存
返回参数,,第一个数据,,第二个数据执行结果
*/.
No description provided by the author
No description provided by the author
GetInt 获取key的int值.
获取key的有效时间.
Incr key 值+1.
MatchPrefixCache 按照前缀匹配key.
MatchPrefixCacheDel 按照前缀匹配key 并删除.
*
md5
*/.
Return a new cache with a given default expiration duration and cleanup interval.
Return a new cache with a given default expiration duration and cleanup interval.
NewRedisLock returns a RedisLock.
No description provided by the author
SetNx 加锁key 值为1.
No description provided by the author
# Constants
No description provided by the author
For use with functions that take an expiration time.
For use with functions that take an expiration time.