# Getting Started

## Installing [Quick Redis](https://npmjs.com/package/quickredis-db)

To install [Quick Redis](https://npmjs.com/package/quickredis-db) run the following command in your project folder

```bash
npm install quickredis-db
```

## Example of [Quick Redis](https://npmjs.com/package/quickredis-db)​ <a href="#example" id="example"></a>

```javascript
// Creating the redis client
const redis = require('quickredis-db')
const client = redis.createClient()

client.once('ready', () => console.log('Connected to database'))

// Setting a value
client.set('foo', 'bar').then(console.log)// 'bar'

// Reading a value
client.get('foo').then(console.log) // 'bar'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://quickredis.js.org/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
