File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 881 ) create a json file called tokens.json in a folder called srh-config (` srh-config/tokens.json ` )
992 ) paste this in:
1010 ``` json
11- {
11+ {
1212 "example_token" : {
1313 "srh_id" : " some_unique_identifier" ,
1414 "connection_string" : " redis://localhost:6379" ,
1515 "max_connections" : 3
1616 }
17- }
17+ }
1818 ```
19193 ) Run this command:
2020` docker run -it -d -p 8079:80 --name srh --mount type=bind,source=$(pwd)/srh-config/tokens.json,target=/app/srh-config/tokens.json hiett/serverless-redis-http:latest `
2323import {Redis } from ' @upstash/redis' ;
2424
2525export const redis = new Redis ({
26- url: " http://localhost:8079" ,
27- token: " example_token" ,
26+ url: " http://localhost:8079" ,
27+ token: " example_token" ,
2828 responseEncoding: false , // IMPORTANT: Upstash has recently added response encoding, but SRH does not support it yet.
2929});
3030```
You can’t perform that action at this time.
0 commit comments