|
@@ -22,8 +22,8 @@ func NewRedisSessionStore(address string, password string) *RedisSessionStore {
|
22
|
22
|
return session
|
23
|
23
|
}
|
24
|
24
|
|
25
|
|
-func (rss *RedisSessionStore) StoreJwtToken(key string, value string, timeout time.Duration) error {
|
26
|
|
- return rss.client.Set(key, value, timeout).Err()
|
|
25
|
+func (rss *RedisSessionStore) StoreJwtToken(key string, value string, timeout int64) error {
|
|
26
|
+ return rss.client.Set(key, value, time.Duration(timeout) * time.Second).Err()
|
27
|
27
|
}
|
28
|
28
|
|
29
|
29
|
func (rss *RedisSessionStore) IsExistsJwtToken(key string) bool {
|