@@ -39,7 +39,7 @@ const cacheImplementer = cache.cacheInstance;
3939
4040An example of the configStrategy is:
4141``` js
42- configStrategy = {
42+ const configStrategy = {
4343 cache: {
4444 engine: " none/redis/memcached" ,
4545 host: " " ,
@@ -67,7 +67,7 @@ configStrategy = {
6767#### Redis Example
6868Following is an example of redis engine config strategy to be used in initializing Cache.
6969``` js
70- configStrategy = {
70+ const configStrategy = {
7171 cache: {
7272 engine: " redis" ,
7373 host: " localhost" ,
@@ -82,7 +82,7 @@ configStrategy = {
8282#### Memcache Example
8383Following is an example of memcache engine config strategy to be used in initializing Cache.
8484` ` ` js
85- configStrategy = {
85+ const configStrategy = {
8686 cache: {
8787 engine: "memcached",
8888 servers: ["127.0.0.1:11211"],
@@ -94,7 +94,7 @@ configStrategy = {
9494#### In-memory Example
9595Following is an example of in-memory engine config strategy to be used in initializing Cache.
9696` ` ` js
97- configStrategy = {
97+ const configStrategy = {
9898 cache: {
9999 engine: " none" ,
100100 namespace: " A" ,
@@ -165,28 +165,28 @@ cacheImplementer.touch('testKey', 10).then(resolvePromise);
165165### Set environment variables of particular cache engine for which you want to run the tests.
166166
167167* Redis
168- ````
168+ ``` shell script
169169source test/env/redis.sh
170- ````
170+ ```
171171* Memcached
172- ````
172+ ``` shell script
173173source test/env/memcached.sh
174- ````
174+ ```
175175* In-memory
176- ````
176+ ``` shell script
177177source test/env/inMemory.sh
178- ````
178+ ```
179179### Cache engines must be running on the specified ports.
180180
181181* Redis (6380,6381)
182- ````
182+ ``` shell script
183183redis-server --port 6380
184- ````
184+ ```
185185* Memcached (11212,11213,11214,11215)
186- ````
186+ ``` shell script
187187memcached -p 11212 -d
188- ````
188+ ```
189189### Run tests
190- ````
190+ ``` shell script
191191./node_modules/.bin/mocha --recursive " ./test/*.js"
192- ````
192+ ```
0 commit comments