Skip to content

Commit

Permalink
Merge pull request #5 from mojaloop/task/csi-162
Browse files Browse the repository at this point in the history
chore: added redis impl.
  • Loading branch information
geka-evk authored Jun 26, 2024
2 parents e99e13f + 464db07 commit 37c949b
Show file tree
Hide file tree
Showing 43 changed files with 248 additions and 103 deletions.
4 changes: 1 addition & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,11 @@ defaults_npm_auth: &defaults_npm_auth

defaults_npm_publish_release: &defaults_npm_publish_release
name: Publish NPM $RELEASE_TAG artifact
command: |
command: |
source $BASH_ENV
npm ci
echo "Publishing tag $RELEASE_TAG"
npm publish --tag $RELEASE_TAG --access public
echo $(node -p "require('./package.json').name")
npm dist-tag add @mojaloop/inter-scheme-proxy-cache-lib@$RELEASE_TAG latest
defaults_export_version_from_package: &defaults_export_version_from_package
name: Format the changelog into the github release body and get release tag
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.3.3](https://github.com/mojaloop/inter-scheme-proxy-cache-lib/compare/v0.3.2...v0.3.3) (2024-06-26)


### Chore

* **csi-162:** added BasicProxyCache; hid logger-related types; updated docs ([c3fe557](https://github.com/mojaloop/inter-scheme-proxy-cache-lib/commit/c3fe557a805579d638298401acc5bce23ae9d810))

### [0.3.2](https://github.com/mojaloop/inter-scheme-proxy-cache-lib/compare/v0.3.1-snapshot.1...v0.3.2) (2024-06-26)


### Chore

* **csi-162:** updated deps ([20b959f](https://github.com/mojaloop/inter-scheme-proxy-cache-lib/commit/20b959fe72967ddb7fb0a068ae6d178c2755ebbf))
31 changes: 14 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,24 @@ import { createProxyCache, STORAGE_TYPES } from '@mojaloop/inter-scheme-proxy-ca
const { createProxyCache } = require('@mojaloop/inter-scheme-proxy-cache-lib');

const proxyCache = createProxyCache(STORAGE_TYPES.redis, {
host: localhost,
host: 'localhost',
port: 6379,
...
});
// todo: define usefull example
await proxyCache.addDfspIdToProxyMapping('dfsp_1', 'proxyAB');
```

### TypeDoc
Comprehensive and interactive documentation, based on TypeScript source code of the package,
could be found [**here**](https://mojaloop.github.io/inter-scheme-proxy-cache-lib)

### API docs
Check [_IProxyCache_](https://mojaloop.github.io/inter-scheme-proxy-cache-lib/interfaces/IProxyCache.html) interface docs to get more details.

### API
```typescript
addDfspIdToProxyMapping: (dfspId: string, proxyId: string) => Promise<boolean>;
// Add the proxyAdapter details of a particular DFSP to proxy mapping
Comprehensive and interactive API documentation, based on TypeScript source code of the package,
could be found [**here**](https://mojaloop.github.io/inter-scheme-proxy-cache-lib)

...
// todo: add all methods
```

### Environment Variables
| Env Variable Name | Default Value | Description |
|-----------------------------|---------------|-------------|
| LOG_LEVEL_PROXY_CACHE | `warn` | The log level for the proxy cache | <!-- white -->
| todo: add required env vars | | |
| Env Variable Name | Default Value | Description |
|-----------------------------|---------------|------------------------------------|
| LOG_LEVEL_PROXY_CACHE | `warn` | The log level for the proxyCache |



Expand All @@ -70,6 +61,12 @@ npm run build
npm test
```

### Generate Typedoc documentation

```bash
npm run docs
```

## Collaborators

- [Eugen Klymniuk](https://github.com/geka-evk)
6 changes: 6 additions & 0 deletions docs/assets/26e93147f10415a0ed4a.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/assets/75c9471662e97ee24f29.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions docs/assets/db90e4df2373980c497d.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/hierarchy.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/assets/hierarchy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 37c949b

Please sign in to comment.