File: DRAGONFLY.md

package info (click to toggle)
python-fakeredis 2.29.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,772 kB
  • sloc: python: 19,002; sh: 8; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 651 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Dragonfly specific commands

> To implement support for a command, see [here](/guides/implement-command/)

These are commands that are not implemented in Redis but supported in Dragonfly and FakeRedis. To use these commands,
you can call `execute_command` with the command name and arguments as follows:

```python
client = FakeRedis(server_type="dragonfly")
client.execute_command("SADDEX", 10, "key", "value")
```

## [SADDEX](https://www.dragonflydb.io/docs/command-reference/sets/saddex)

Similar to SADD but adds one or more members that expire after specified number of seconds. An error is returned when
the value stored at key is not a set.