0.5.0 - Customizable storage keys
- Enable users to provide suffix and prefix particles by albertojgomez · Pull Request #48 · ackintosh/ganesha
- Remove Soushi by ackintosh · Pull Request #50 · ackintosh/ganesha
- Add google analytics tag to the promotion page by ackintosh · Pull Request #52 · ackintosh/ganesha
- Storage keys by ackintosh · Pull Request #54 · ackintosh/ganesha
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(),
]);