package
0.0.0-20221105065511-5afb8a4797ad
Repository: https://github.com/1ulang/zero-trust-gateway.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.