22
33A simple Redis client in tune with Functional Programming principles in JavaScript for Deno.
44
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 ) 66[ ![ deno version] ( https://img.shields.io/badge/deno-^1.6.1-lightgrey?logo=deno )] ( https://github.com/denoland/deno )
77[ ![ GitHub release] ( https://img.shields.io/github/v/release/sebastienfilion/functional-redis )] ( https://github.com/sebastienfilion/functional-redis/releases )
88[ ![ 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
2121import {
safeExtract }
from " https://deno.land/x/[email protected] /library/utilities.js" ;
2222import File from " https://deno.land/x/[email protected] /library/File.js" ;
2323import {
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" ;
2525import {
2626 createRedisSession ,
2727 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" ;
2929
3030const copyHogeToFuga = createRedisSession (
3131 compose (
@@ -383,7 +383,7 @@ This function takes an object for the connection options and, return a
383383[` Task` ](https://github.com/sebastienfilion/functional#task-type) of a ` Resource` .
384384
385385` ` ` 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" ;
387387
388388const container = await connectRedisClient ({ port: 6379 }).run ();
389389const redisResource = safeExtract (" Failed to connect the client." , container);
@@ -396,7 +396,7 @@ This function takes a Resource and, return a
396396[` Task` ](https://github.com/sebastienfilion/functional#task-type) of a ` Resource` .
397397
398398` ` ` 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" ;
400400
401401await disconnectRedisClient (redisResource).run ();
402402` ` `
@@ -409,9 +409,9 @@ and, returns a [`Task`](https://github.com/sebastienfilion/functional#task-type)
409409
410410` ` ` js
411411import {
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" ;
415415
416416const container = await executeRedisCommand (
417417 RedisRequest .set ({}, " hoge" , " piyo" ),
@@ -433,9 +433,9 @@ server. The function returns a [`Task`](https://github.com/sebastienfilion/funct
433433
434434` ` ` js
435435import {
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" ;
439439
440440const container = await executeRedisCommandPipeline (
441441 [
@@ -475,8 +475,8 @@ import { writeFile } from "https://deno.land/x/
[email protected] /library/fs.j
475475import {
476476 createRedisSession ,
477477 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" ;
480480
481481const writeHogeToFile = createRedisSession (
482482 compose (
@@ -511,8 +511,8 @@ import { safeExtract } from "https://deno.land/x/
[email protected] /library/utili
511511import {
512512 createRedisSession ,
513513 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" ;
516516
517517const copyHogeToFuga = createRedisSession (
518518 compose (
0 commit comments