-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03b7497
commit 5719523
Showing
5 changed files
with
35 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,11 @@ This example uses the Ramda library - for simplification - but you should be abl | |
import { safeExtract } from "https://deno.land/x/[email protected]/library/utilities.js"; | ||
import File from "https://deno.land/x/[email protected]/library/File.js"; | ||
import { writeFile } from "https://deno.land/x/[email protected]/library/fs.js"; | ||
import RedisRequest from "https://deno.land/x/[email protected].2/library/RedisRequest.js"; | ||
import RedisRequest from "https://deno.land/x/[email protected].3/library/RedisRequest.js"; | ||
import { | ||
createRedisSession, | ||
pipeRedisCommand | ||
} from "https://deno.land/x/[email protected].2/library/client.js"; | ||
} from "https://deno.land/x/[email protected].3/library/client.js"; | ||
|
||
const copyHogeToFuga = createRedisSession( | ||
compose( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
A simple Redis client in tune with Functional Programming principles in JavaScript for Deno. | ||
|
||
[![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) | ||
[![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) | ||
[![deno version](https://img.shields.io/badge/deno-^1.6.1-lightgrey?logo=deno)](https://github.com/denoland/deno) | ||
[![GitHub release](https://img.shields.io/github/v/release/sebastienfilion/functional-redis)](https://github.com/sebastienfilion/functional-redis/releases) | ||
[![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 | |
import { safeExtract } from "https://deno.land/x/[email protected]/library/utilities.js"; | ||
import File from "https://deno.land/x/[email protected]/library/File.js"; | ||
import { writeFile } from "https://deno.land/x/[email protected]/library/fs.js"; | ||
import RedisRequest from "https://deno.land/x/[email protected].2/library/RedisRequest.js"; | ||
import RedisRequest from "https://deno.land/x/[email protected].3/library/RedisRequest.js"; | ||
import { | ||
createRedisSession, | ||
pipeRedisCommand | ||
} from "https://deno.land/x/[email protected].2/library/client.js"; | ||
} from "https://deno.land/x/[email protected].3/library/client.js"; | ||
|
||
const copyHogeToFuga = createRedisSession( | ||
compose( | ||
|
@@ -383,7 +383,7 @@ This function takes an object for the connection options and, return a | |
[`Task`](https://github.com/sebastienfilion/functional#task-type) of a `Resource`. | ||
```js | ||
import { connectRedisClient } from "https://deno.land/x/[email protected].2/library/client.js"; | ||
import { connectRedisClient } from "https://deno.land/x/[email protected].3/library/client.js"; | ||
|
||
const container = await connectRedisClient({ port: 6379 }).run(); | ||
const redisResource = safeExtract("Failed to connect the client.", container); | ||
|
@@ -396,7 +396,7 @@ This function takes a Resource and, return a | |
[`Task`](https://github.com/sebastienfilion/functional#task-type) of a `Resource`. | ||
```js | ||
import { disconnectRedisClient } from "https://deno.land/x/[email protected].2/library/client.js"; | ||
import { disconnectRedisClient } from "https://deno.land/x/[email protected].3/library/client.js"; | ||
|
||
await disconnectRedisClient(redisResource).run(); | ||
``` | ||
|
@@ -409,9 +409,9 @@ and, returns a [`Task`](https://github.com/sebastienfilion/functional#task-type) | |
```js | ||
import { safeExtract } from "https://deno.land/x/[email protected]/library/utilities.js"; | ||
import { executeRedisCommand } from "https://deno.land/x/[email protected].2/library/client.js"; | ||
import RedisRequest from "https://deno.land/x/[email protected].2/library/RedisRequest.js"; | ||
import RedisResponse from "https://deno.land/x/[email protected].2/library/RedisResponse.js"; | ||
import { executeRedisCommand } from "https://deno.land/x/[email protected].3/library/client.js"; | ||
import RedisRequest from "https://deno.land/x/[email protected].3/library/RedisRequest.js"; | ||
import RedisResponse from "https://deno.land/x/[email protected].3/library/RedisResponse.js"; | ||
|
||
const container = await executeRedisCommand( | ||
RedisRequest.set({}, "hoge", "piyo"), | ||
|
@@ -433,9 +433,9 @@ server. The function returns a [`Task`](https://github.com/sebastienfilion/funct | |
```js | ||
import { safeExtract } from "https://deno.land/x/[email protected]/library/utilities.js"; | ||
import { executeRedisCommandPipeline } from "https://deno.land/x/[email protected].2/library/client.js"; | ||
import RedisRequest from "https://deno.land/x/[email protected].2/library/RedisRequest.js"; | ||
import RedisResponse from "https://deno.land/x/[email protected].2/library/RedisResponse.js"; | ||
import { executeRedisCommandPipeline } from "https://deno.land/x/[email protected].3/library/client.js"; | ||
import RedisRequest from "https://deno.land/x/[email protected].3/library/RedisRequest.js"; | ||
import RedisResponse from "https://deno.land/x/[email protected].3/library/RedisResponse.js"; | ||
|
||
const container = await executeRedisCommandPipeline( | ||
[ | ||
|
@@ -475,8 +475,8 @@ import { writeFile } from "https://deno.land/x/[email protected]/library/fs.j | |
import { | ||
createRedisSession, | ||
executeRedisCommand | ||
} from "https://deno.land/x/[email protected].2/library/client.js"; | ||
import RedisRequest from "https://deno.land/x/[email protected].2/library/RedisRequest.js"; | ||
} from "https://deno.land/x/[email protected].3/library/client.js"; | ||
import RedisRequest from "https://deno.land/x/[email protected].3/library/RedisRequest.js"; | ||
|
||
const writeHogeToFile = createRedisSession( | ||
compose( | ||
|
@@ -511,8 +511,8 @@ import { safeExtract } from "https://deno.land/x/[email protected]/library/utili | |
import { | ||
createRedisSession, | ||
pipeRedisCommand | ||
} from "https://deno.land/x/[email protected].2/library/client.js"; | ||
import RedisRequest from "https://deno.land/x/[email protected].2/library/RedisRequest.js"; | ||
} from "https://deno.land/x/[email protected].3/library/client.js"; | ||
import RedisRequest from "https://deno.land/x/[email protected].3/library/RedisRequest.js"; | ||
|
||
const copyHogeToFuga = createRedisSession( | ||
compose( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,14 +29,14 @@ import { | |
when | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
import Pair, { factorizePair } from "../../functional/library/Pair.js"; | ||
import Task from "../../functional/library/Task.js"; | ||
import Pair, { factorizePair } from "https://deno.land/x/functional@v1.3.2/library/Pair.js"; | ||
import Task from "https://deno.land/x/functional@v1.3.2/library/Task.js"; | ||
import { | ||
chainRec, | ||
decodeRaw, | ||
encodeText, | ||
runSequentially | ||
} from "../../functional/library/utilities.js"; | ||
} from "https://deno.land/x/functional@v1.3.2/library/utilities.js"; | ||
import { factorizeBuffer } from "https://deno.land/x/[email protected]/library/Buffer.js"; | ||
import Resource, { factorizeResource } from "https://deno.land/x/[email protected]/library/Resource.js"; | ||
import { close, readLine, readNBytes, write } from "https://deno.land/x/[email protected]/library/fs.js"; | ||
|
@@ -297,7 +297,7 @@ export const parseRedisResponse = compose( | |
* [`Task`](https://github.com/sebastienfilion/functional#task-type) of a `Resource`. | ||
* | ||
* ```js | ||
* import { connectRedisClient } from "https://deno.land/x/[email protected].2/library/client.js"; | ||
* import { connectRedisClient } from "https://deno.land/x/[email protected].3/library/client.js"; | ||
* | ||
* const container = await connectRedisClient({ port: 6379 }).run(); | ||
* const redisResource = safeExtract("Failed to connect the client.", container); | ||
|
@@ -316,7 +316,7 @@ export const connectRedisClient = compose( | |
* [`Task`](https://github.com/sebastienfilion/functional#task-type) of a `Resource`. | ||
* | ||
* ```js | ||
* import { disconnectRedisClient } from "https://deno.land/x/[email protected].2/library/client.js"; | ||
* import { disconnectRedisClient } from "https://deno.land/x/[email protected].3/library/client.js"; | ||
* | ||
* await disconnectRedisClient(redisResource).run(); | ||
* ``` | ||
|
@@ -491,9 +491,9 @@ export const writeRedisPipeline = curry( | |
* | ||
* ```js | ||
* import { safeExtract } from "https://deno.land/x/[email protected]/library/utilities.js"; | ||
* import { executeRedisCommand } from "https://deno.land/x/[email protected].2/library/client.js"; | ||
* import RedisRequest from "https://deno.land/x/[email protected].2/library/RedisRequest.js"; | ||
* import RedisResponse from "https://deno.land/x/[email protected].2/library/RedisResponse.js"; | ||
* import { executeRedisCommand } from "https://deno.land/x/[email protected].3/library/client.js"; | ||
* import RedisRequest from "https://deno.land/x/[email protected].3/library/RedisRequest.js"; | ||
* import RedisResponse from "https://deno.land/x/[email protected].3/library/RedisResponse.js"; | ||
* | ||
* const container = await executeRedisCommand( | ||
* RedisRequest.set({}, "hoge", "piyo"), | ||
|
@@ -523,9 +523,9 @@ export const executeRedisCommand = curry( | |
* | ||
* ```js | ||
* import { safeExtract } from "https://deno.land/x/[email protected]/library/utilities.js"; | ||
* import { executeRedisCommandPipeline } from "https://deno.land/x/[email protected].2/library/client.js"; | ||
* import RedisRequest from "https://deno.land/x/[email protected].2/library/RedisRequest.js"; | ||
* import RedisResponse from "https://deno.land/x/[email protected].2/library/RedisResponse.js"; | ||
* import { executeRedisCommandPipeline } from "https://deno.land/x/[email protected].3/library/client.js"; | ||
* import RedisRequest from "https://deno.land/x/[email protected].3/library/RedisRequest.js"; | ||
* import RedisResponse from "https://deno.land/x/[email protected].3/library/RedisResponse.js"; | ||
* | ||
* const container = await executeRedisCommandPipeline( | ||
* [ | ||
|
@@ -571,8 +571,8 @@ export const executeRedisCommandPipeline = curry( | |
* import { | ||
* createRedisSession, | ||
* executeRedisCommand | ||
* } from "https://deno.land/x/[email protected].2/library/client.js"; | ||
* import RedisRequest from "https://deno.land/x/[email protected].2/library/RedisRequest.js"; | ||
* } from "https://deno.land/x/[email protected].3/library/client.js"; | ||
* import RedisRequest from "https://deno.land/x/[email protected].3/library/RedisRequest.js"; | ||
* | ||
* const writeHogeToFile = createRedisSession( | ||
* compose( | ||
|
@@ -621,8 +621,8 @@ export const createRedisSession = unaryFunction => compose( | |
* import { | ||
* createRedisSession, | ||
* pipeRedisCommand | ||
* } from "https://deno.land/x/[email protected].2/library/client.js"; | ||
* import RedisRequest from "https://deno.land/x/[email protected].2/library/RedisRequest.js"; | ||
* } from "https://deno.land/x/[email protected].3/library/client.js"; | ||
* import RedisRequest from "https://deno.land/x/[email protected].3/library/RedisRequest.js"; | ||
* | ||
* const copyHogeToFuga = createRedisSession( | ||
* compose( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,9 +26,9 @@ import { | |
log, | ||
safeExtract, | ||
runSequentially | ||
} from "../../functional/library/utilities.js"; | ||
} from "https://deno.land/x/functional@v1.3.2/library/utilities.js"; | ||
import Buffer from "https://deno.land/x/[email protected]/library/Buffer.js"; | ||
import File from "../../functional-io/library/File.js"; | ||
import File from "https://deno.land/x/[email protected]/library/File.js"; | ||
import Resource from "https://deno.land/x/[email protected]/library/Resource.js"; | ||
import { readFile, writeFile } from "https://deno.land/x/[email protected]/library/fs.js"; | ||
|
||
|