vendredi 3 mars 2017

Add custom cache driver in standalone Laravel cache instance

Using the cache component of Laravel ( Illuminate/Cache ) as caching backend for my app, how can I register a new custom cache driver? Since I don’t use Laravel at all (only Illuminate/Cache), I can’t add it to my service provider and the Cache facade returns and error. Note that I’m successfully using the defaults drivers (file, memcached, redis) by passing the config and such inside an empty Illuminate\Container\Container using the singleton function.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire