open-index/open-npm huggingface dataset:
npm package: @optask/storage-redis
Description: An implementation of tasker Storage using redis
Author: Kasper Gammeltoft
Latest version: 1.2.1

# @optask/storage-redis

A simple wrapper around `ioredis` to implement a basic storage from `@optask/tasker`.

Will utilize redis strings to store task state.

## Quickstart

Install the package:

```shell
yarn add @optask/tasker @optask/storage-redis
```

When you are configuring the scheduler, set the storage mechanism:

```javascript
import { TaskScheduler } from '@optask/tasker';
import { RedisStore } from '@optask/storage-redis';

const scheduler = new TaskScheduler();

scheduler.registerStore(
  new RedisStore({
    host: 'localhost',
    port: 6379,
    namespace: 'tasker',
  }),
);
```

Note that namespace is a required parameter that defines how the key space will be prefixed.
All other options inherit from ioredis options, see the ioredis docs [here](https://github.com/redis/ioredis?tab=readme-ov-file#connect-to-redis)
npm package: @optask/storage-s3
Description: An implementation of tasker Storage using an s3 bucket
Author: Kasper Gammeltoft
Latest version: 1.2.1

# @optask/storage-s3

A simple wrapper around `@aws-sdk/client-s3` to implement a basic storage from `@optask/tasker`.

Will utilize s3 file paths in order to store task state.

## Quickstart

Install the package:

```shell
yarn add @optask/tasker @optask/storage-s3
```

When you are configuring the scheduler, set the storage mechanism:

```javascript
import { TaskScheduler } from '@optask/tasker';
import { S3Store } from '@optask/storage-s3';

const scheduler = new TaskScheduler();

scheduler.registerStore(
  new S3Store({
    region: 'us-east-1',
    bucketName: 'deployTasks',
    credentials: {
      accessKeyId: '******',
      secretAccessKey: '********',
    },
  }),
);
```

Note that region and bucketName are required, but all other options
inherit from the aws sdk s3 client options, see docs [here](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3/)