2017 © Pedro Peláez
 

project inspectable-stash-bundle

image

jadu/inspectable-stash-bundle

  • Friday, October 7, 2016
  • by asmblah
  • Repository
  • 4 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Inspectable Stash bundle

Build Status, (*1)

Symfony bundle to allow inspecting data cached with Stash., (*2)

Usage

Add the bundle to your kernel to install the cache driver proxy and inspection console command:, (*3)

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):, (*4)

inspectable_stash_driver:
    memcached_service: my_vendor.caching.memcached_service_id

the service will need to be an instance of the builtin Memcached class., (*5)

Inspecting the cached data

You can use the console command:, (*6)

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:, (*7)

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:, (*8)

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

. --with-values may be used with or without --grep., (*9)

Credits

The Versions