This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

v2.0.1 2016-10-07 14:49 UTC

This package is auto-updated.

Last update: 2021-07-22 01:01:44 UTC


Build Status

Symfony bundle to allow inspecting data cached with Stash.


Add the bundle to your kernel to install the cache driver proxy and inspection console command:

class AppKernel
    public function registerBundles()
        $bundles = array(
            new Tedivm\StashBundle\TedivmStashBundle(),
            new Jadu\InspectableStashBundle\InspectableStashDriverBundle(),

        return $bundles;

you'll also need to configure the Memcached service that should be used, for example (added to config.yml):

    memcached_service: my_vendor.caching.memcached_service_id

the service will need to be an instance of the builtin Memcached class.

Inspecting the cached data

You can use the console command:

app/console dump:stash:cache

to fetch a list of all keys stored by Stash. If you need to filter this list for only keys matching a certain pattern, you may provide a regular expression like this:

app/console dump:stash:cache --grep 'some/prefix.*later'

. Finally, if you need to see the values for each cache entry too, just add the --with-values option, like this:

app/console dump:stash:cache --grep 'some/prefix.*later' --with-values

. --with-values may be used with or without --grep.