diff --git a/storage_redis.go b/storage_redis.go index f48161c..4cb676c 100644 --- a/storage_redis.go +++ b/storage_redis.go @@ -77,12 +77,12 @@ func (s storageRedis) redisExpiry() int { return 0 } - e, err := strconv.ParseInt(expStr, 10, 64) + e, err := strconv.Atoi(expStr) if err != nil { return 0 } - return int(e) + return e } func (s storageRedis) redisKey() string {