# Unable to set maxmemory-policy config

**URL:** <https://dragonfly.discourse.group/t/unable-to-set-maxmemory-policy-config/142>\
**Category:** Dragonfly Technical\
**Created:** [March 5, 2024, 2:20pm UTC](https://dragonfly.discourse.group/t/unable-to-set-maxmemory-policy-config/142 "2024-03-05T14:20:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![resourceful-antelope](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@resourceful-antelope](https://dragonfly.discourse.group/u/resourceful-antelope)\
**Post date:** [March 5, 2024, 2:20pm UTC](https://dragonfly.discourse.group/t/unable-to-set-maxmemory-policy-config/142/1 "2024-03-05T14:20:39Z")

</div>

According to [https://www.dragonflydb.io/faq/how-to-set-eviction-policy-in-redis](https://www.dragonflydb.io/faq/how-to-set-eviction-policy-in-redis), I was trying to set the eviction policy on an already running instance like this and I am unable to.

```auto
127.0.0.1:6379> CONFIG SET maxmemory-policy volatile-lru
(error) ERR Unknown option or number of arguments for CONFIG SET - 'maxmemory-policy'
127.0.0.1:6379> CONFIG GET maxmemory-policy
(empty list or set)

```

i am running the latest (as of today) version

```auto
I20240305 09:14:41.816077 1 init.cc:70] dragonfly running in opt mode.
* Logs will be written to the first available of the following paths:
/tmp/dragonfly.*
./dragonfly.*
* For the available flags type dragonfly [--help | --helpfull]
* Documentation can be found at: https://www.dragonflydb.io/docs
I20240305 09:14:41.818137 1 dfly_main.cc:627] Starting dragonfly df-v1.15.0-0c1150956b600f21473eae1d0e338194de6b61bc
I20240305 09:14:41.822212 1 dfly_main.cc:671] maxmemory has not been specified. Deciding myself....

```

What am I doing wrong ?

---

<div class="post-metadata">

**Author:** ![realistic-ferret](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@realistic-ferret](https://dragonfly.discourse.group/u/realistic-ferret)\
**Post date:** [March 5, 2024, 2:46pm UTC](https://dragonfly.discourse.group/t/unable-to-set-maxmemory-policy-config/142/2 "2024-03-05T14:46:44Z")

</div>

hi @resourceful-antelope i think we currently do not support those policy options as Redis does

---

<div class="post-metadata">

**Author:** ![dignified-nautilus](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dignified-nautilus](https://dragonfly.discourse.group/u/dignified-nautilus)\
**Post date:** [March 5, 2024, 3:58pm UTC](https://dragonfly.discourse.group/t/unable-to-set-maxmemory-policy-config/142/3 "2024-03-05T15:58:18Z")

</div>

right. dragonfly only supports 2q eviciton policy [https://www.dragonflydb.io/blog/dragonfly-cache-design](https://www.dragonflydb.io/blog/dragonfly-cache-design)

---

<div class="post-metadata">

**Author:** ![resourceful-antelope](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@resourceful-antelope](https://dragonfly.discourse.group/u/resourceful-antelope)\
**Post date:** [March 5, 2024, 4:45pm UTC](https://dragonfly.discourse.group/t/unable-to-set-maxmemory-policy-config/142/4 "2024-03-05T16:45:30Z")

</div>

Ah ok, I misunderstood the docs.

---

<div class="post-metadata">

**Author:** ![resourceful-antelope](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@resourceful-antelope](https://dragonfly.discourse.group/u/resourceful-antelope)\
**Post date:** [March 5, 2024, 4:45pm UTC](https://dragonfly.discourse.group/t/unable-to-set-maxmemory-policy-config/142/5 "2024-03-05T16:45:43Z")

</div>

Because the link is on dragonflydb, i thought it was for dragonfly 🤣

---

<div class="post-metadata">

**Author:** ![realistic-ferret](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@realistic-ferret](https://dragonfly.discourse.group/u/realistic-ferret)\
**Post date:** [March 5, 2024, 5:05pm UTC](https://dragonfly.discourse.group/t/unable-to-set-maxmemory-policy-config/142/6 "2024-03-05T17:05:40Z")

</div>

adi’s link? yeah it is for dragonfly…

---

<div class="post-metadata">

**Author:** ![resourceful-antelope](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@resourceful-antelope](https://dragonfly.discourse.group/u/resourceful-antelope)\
**Post date:** [March 5, 2024, 5:39pm UTC](https://dragonfly.discourse.group/t/unable-to-set-maxmemory-policy-config/142/7 "2024-03-05T17:39:31Z")

</div>

no, this link [https://www.dragonflydb.io/faq/how-to-set-eviction-policy-in-redis](https://www.dragonflydb.io/faq/how-to-set-eviction-policy-in-redis)

---

<div class="post-metadata">

**Author:** ![realistic-ferret](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@realistic-ferret](https://dragonfly.discourse.group/u/realistic-ferret)\
**Post date:** [March 5, 2024, 5:41pm UTC](https://dragonfly.discourse.group/t/unable-to-set-maxmemory-policy-config/142/8 "2024-03-05T17:41:25Z")

</div>

i see

---

<div class="post-metadata">

**Author:** ![realistic-ferret](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@realistic-ferret](https://dragonfly.discourse.group/u/realistic-ferret)\
**Post date:** [March 5, 2024, 5:42pm UTC](https://dragonfly.discourse.group/t/unable-to-set-maxmemory-policy-config/142/9 "2024-03-05T17:42:57Z")

</div>

this is indeed confusing… Adi has send feedback to our team, maybe this page shall not be there…
