2
2
3
3
A simple Redis client in tune with Functional Programming principles in JavaScript for Deno.
4
4
5
- [ ![ deno land
] ( http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno&labelColor=black )] ( https://deno.land/x/[email protected] .2 )
5
+ [ ![ deno land
] ( http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno&labelColor=black )] ( https://deno.land/x/[email protected] .3 )
6
6
[ ![ deno version] ( https://img.shields.io/badge/deno-^1.6.1-lightgrey?logo=deno )] ( https://github.com/denoland/deno )
7
7
[ ![ GitHub release] ( https://img.shields.io/github/v/release/sebastienfilion/functional-redis )] ( https://github.com/sebastienfilion/functional-redis/releases )
8
8
[ ![ GitHub licence] ( https://img.shields.io/github/license/sebastienfilion/functional-redis )] ( https://github.com/sebastienfilion/functional-redis/blob/v0.1.2/LICENSE )
@@ -21,11 +21,11 @@ This example uses the Ramda library - for simplification - but you should be abl
21
21
import {
safeExtract }
from " https://deno.land/x/[email protected] /library/utilities.js" ;
22
22
import File from " https://deno.land/x/[email protected] /library/File.js" ;
23
23
import {
writeFile }
from " https://deno.land/x/[email protected] /library/fs.js" ;
24
- import RedisRequest from " https://deno.land/x/[email protected] .2 /library/RedisRequest.js" ;
24
+ import RedisRequest from " https://deno.land/x/[email protected] .3 /library/RedisRequest.js" ;
25
25
import {
26
26
createRedisSession ,
27
27
pipeRedisCommand
28
- }
from " https://deno.land/x/[email protected] .2 /library/client.js" ;
28
+ }
from " https://deno.land/x/[email protected] .3 /library/client.js" ;
29
29
30
30
const copyHogeToFuga = createRedisSession (
31
31
compose (
@@ -383,7 +383,7 @@ This function takes an object for the connection options and, return a
383
383
[` Task` ](https://github.com/sebastienfilion/functional#task-type) of a ` Resource` .
384
384
385
385
` ` ` js
386
- import {
connectRedisClient }
from " https://deno.land/x/[email protected] .2 /library/client.js" ;
386
+ import {
connectRedisClient }
from " https://deno.land/x/[email protected] .3 /library/client.js" ;
387
387
388
388
const container = await connectRedisClient ({ port: 6379 }).run ();
389
389
const redisResource = safeExtract (" Failed to connect the client." , container);
@@ -396,7 +396,7 @@ This function takes a Resource and, return a
396
396
[` Task` ](https://github.com/sebastienfilion/functional#task-type) of a ` Resource` .
397
397
398
398
` ` ` js
399
- import {
disconnectRedisClient }
from " https://deno.land/x/[email protected] .2 /library/client.js" ;
399
+ import {
disconnectRedisClient }
from " https://deno.land/x/[email protected] .3 /library/client.js" ;
400
400
401
401
await disconnectRedisClient (redisResource).run ();
402
402
` ` `
@@ -409,9 +409,9 @@ and, returns a [`Task`](https://github.com/sebastienfilion/functional#task-type)
409
409
410
410
` ` ` js
411
411
import {
safeExtract }
from " https://deno.land/x/[email protected] /library/utilities.js" ;
412
- import {
executeRedisCommand }
from " https://deno.land/x/[email protected] .2 /library/client.js" ;
413
- import RedisRequest from " https://deno.land/x/[email protected] .2 /library/RedisRequest.js" ;
414
- import RedisResponse from " https://deno.land/x/[email protected] .2 /library/RedisResponse.js" ;
412
+ import {
executeRedisCommand }
from " https://deno.land/x/[email protected] .3 /library/client.js" ;
413
+ import RedisRequest from " https://deno.land/x/[email protected] .3 /library/RedisRequest.js" ;
414
+ import RedisResponse from " https://deno.land/x/[email protected] .3 /library/RedisResponse.js" ;
415
415
416
416
const container = await executeRedisCommand (
417
417
RedisRequest .set ({}, " hoge" , " piyo" ),
@@ -433,9 +433,9 @@ server. The function returns a [`Task`](https://github.com/sebastienfilion/funct
433
433
434
434
` ` ` js
435
435
import {
safeExtract }
from " https://deno.land/x/[email protected] /library/utilities.js" ;
436
- import {
executeRedisCommandPipeline }
from " https://deno.land/x/[email protected] .2 /library/client.js" ;
437
- import RedisRequest from " https://deno.land/x/[email protected] .2 /library/RedisRequest.js" ;
438
- import RedisResponse from " https://deno.land/x/[email protected] .2 /library/RedisResponse.js" ;
436
+ import {
executeRedisCommandPipeline }
from " https://deno.land/x/[email protected] .3 /library/client.js" ;
437
+ import RedisRequest from " https://deno.land/x/[email protected] .3 /library/RedisRequest.js" ;
438
+ import RedisResponse from " https://deno.land/x/[email protected] .3 /library/RedisResponse.js" ;
439
439
440
440
const container = await executeRedisCommandPipeline (
441
441
[
@@ -475,8 +475,8 @@ import { writeFile } from "https://deno.land/x/
[email protected] /library/fs.j
475
475
import {
476
476
createRedisSession ,
477
477
executeRedisCommand
478
- }
from " https://deno.land/x/[email protected] .2 /library/client.js" ;
479
- import RedisRequest from " https://deno.land/x/[email protected] .2 /library/RedisRequest.js" ;
478
+ }
from " https://deno.land/x/[email protected] .3 /library/client.js" ;
479
+ import RedisRequest from " https://deno.land/x/[email protected] .3 /library/RedisRequest.js" ;
480
480
481
481
const writeHogeToFile = createRedisSession (
482
482
compose (
@@ -511,8 +511,8 @@ import { safeExtract } from "https://deno.land/x/
[email protected] /library/utili
511
511
import {
512
512
createRedisSession ,
513
513
pipeRedisCommand
514
- }
from " https://deno.land/x/[email protected] .2 /library/client.js" ;
515
- import RedisRequest from " https://deno.land/x/[email protected] .2 /library/RedisRequest.js" ;
514
+ }
from " https://deno.land/x/[email protected] .3 /library/client.js" ;
515
+ import RedisRequest from " https://deno.land/x/[email protected] .3 /library/RedisRequest.js" ;
516
516
517
517
const copyHogeToFuga = createRedisSession (
518
518
compose (
0 commit comments