Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added all dependencies to package.json #11

Merged
merged 1 commit into from
Sep 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 0 additions & 18 deletions docs/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ Not rewritten yet, to be filled in

## MongoDB

Requires npm package (Tested on v3.6.0):

```bash
npm i mongodb
```

Stores documents in a specified database in a collection named `entries`.
Expiration property in config can be changed to a value in seconds after which entries will not be served.

Expand Down Expand Up @@ -87,12 +81,6 @@ Check [documentation](https://mongodb.github.io/node-mongodb-native/3.5/api/Mong

## Postgres

Requires npm package (Tested on v8.3.3):

```bash
npm install pg
```

You will have to create the database and add a table named `entries`. It can be easily done with the following query:

`CREATE TABLE entries (id SERIAL PRIMARY KEY, key VARCHAR(255) NOT NULL, value TEXT NOT NULL, expiration INT, UNIQUE(key));`
Expand All @@ -116,12 +104,6 @@ Expiration property in config can be changed to a value in seconds after which e

## Redis

Requires npm package (Tested on v4.17.3):

```bash
npm install ioredis
```

Stores documents in a specified redis database.
Expiration property in config can be changed to a value in seconds after which entries will not be served.

Expand Down