# How to use Acorn Cache with REDIS in Sage Theme

**URL:** https://discourse.roots.io/t/how-to-use-acorn-cache-with-redis-in-sage-theme/27012
**Category:** sage
**Created:** 2024-04-18T13:13:38Z
**Posts:** 5

## Post 1 by @grzesiek1owline — 2024-04-18T13:13:38Z

Hi, i have a problem with config redis cache in acorn.  
I have default config and i try to use this:

```
$transient_name = '123';
Cache::store('redis')->put($transient_name);
```

And i have error: Next Illuminate\View\ViewException: Illuminate\Cache\RedisStore::\_\_construct(): Argument #1 ($redis) must be of type Illuminate\Contracts\Redis\Factory, Redis given,

I use docker env (lando dev) with service redis with default port 6379.  
I use only Sage theme, without bedrock.

Anyone can help me with step by step config?

---

## Post 2 by @strarsis — 2024-04-18T15:56:24Z

Interesting! Does `acorn` use the WordPress caching facilities, or does it have to be configured separately? I use a plugin ([WP Redis](https://wordpress.org/plugins/wp-redis/)) for the sites that should [use Redis](https://discourse.roots.io/t/use-redis-cache-with-bedrock-and-trellis/15001/9) (as an object cache).

---

## Post 3 by @ben — 2024-04-18T17:15:16Z

Did you already run `composer require illuminate/redis`?

---

## Post 4 by @slam — 2024-04-19T02:17:54Z

Ben, is there any documentation on what this package does, when it’s needed, or how to use it?

We’ve been getting some inexplicable redis behavior — objects not clearing after update, errors after purging cache, nothing I’ve been able to source.

---

## Post 5 by @grzesiek1owline — 2024-04-19T08:29:10Z

It’s right.  
I install “illuminate/redis”: “9.5” (for acorn 3) and works.  
Now i will test it deeper.
