# Caching doctrine with slim 4

**URL:** https://discourse.slimframework.com/t/caching-doctrine-with-slim-4/5025
**Category:** Questions
**Created:** [November 30, 2021, 9:45pm UTC](https://discourse.slimframework.com/t/caching-doctrine-with-slim-4/5025 "2021-11-30T21:45:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![procraste](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/procraste/32/1143_2.png) [@procraste](https://discourse.slimframework.com/u/procraste)
#### Post date: [November 30, 2021, 9:45pm UTC](https://discourse.slimframework.com/t/caching-doctrine-with-slim-4/5025/1 "2021-11-30T21:45:11Z")

</div>

The slim 3 cook book explain how to configure Doctrine.

Especially, it uses the “FilesystemCache” which isn’t available anymore with Doctrine/cache.

How do i set the Metadata Cache now ?

Would appreciate any help !

---

<div class="post-metadata">

### Author: ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)
#### Post date: [November 30, 2021, 10:18pm UTC](https://discourse.slimframework.com/t/caching-doctrine-with-slim-4/5025/2 "2021-11-30T22:18:42Z")

</div>

As far as I know, Doctrine recommends any PSR-6 or PSR-16 cache implementation.

- [Deprecation Notice - Doctrine Cache](https://www.doctrine-project.org/projects/doctrine-cache/en/2.1/index.html)
