Skip to content

0.5.0 - Customizable storage keys

Compare
Choose a tag to compare
@ackintosh ackintosh released this 28 Sep 12:07
· 226 commits to master since this release

Customizable storage keys

If you want customize the keys to be used when storing circuit breaker information, set an instance which implements StorageKeysInterface.

class YourStorageKeys implements StorageKeysInterface
{
    public function prefix()
    {
        return 'your_prefix_';
    }
    
    // (ommitted)
}

$ganesha = Ackintosh\Ganesha\Builder::build([
    // The keys which will stored by Ganesha to the storage you specified via `adapter`
    // will be prefixed with `your_prefix_`.
    'storageKeys' => new YourStorageKeys(),
]);