UNPKG
jstor-redis
Version:
latest (1.0.0)
1.0.0
jstor redis storage client
jstor-redis
/
_sampleUsage.js
9 lines
(8 loc)
•
221 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
Store
from
'jstor'
;
import
StrategyRedis
from
'./jstor-redis.js'
;
export
const
store =
new
Store
({
strategy
:
StrategyRedis
({
url
:
'redis://127.0.0.1:6379'
,
keyPrefix
:
'jstor'
}) });