jord-jd/do-file-cache-psr-6
PSR-6 cache adapter for Jord-JD/DO File Cache. Use it to access DO File Cache through standard PSR-6 CacheItemPoolInterface for framework-agnostic caching with Composer-based installation.
Cache::store(), Cache::tags()). Eliminates vendor lock-in by adhering to a standardized interface.vnyx/laravel-psr6-cache as a bridge.Cache facade and CacheItemPoolInterface.config/cache.php updates and DO API credentials (e.g., DO_SPACES_KEY). Example:
'stores' => [
'do_file' => [
'driver' => 'do_file',
'path' => env('DO_CACHE_PATH', storage_path('framework/cache/do')),
'prefix' => 'do_',
'key' => env('DO_SPACES_KEY'),
'secret' => env('DO_SPACES_SECRET'),
],
],
do/file-cache (≥v1.0), which may introduce additional setup if not already in use.file driver, this could create duplicate cache stores unless explicitly managed..env or secrets manager). No built-in encryption for cache values (unlike Redis).statsd or Prometheus. Requires custom logging for hit/miss ratios.FileCache or Redis)?file cache driver for persistent, disk-backed storage with DO’s optimized backend.Cache facade and CacheItemPoolInterface.do/file-cache (≥v1.0). Check for version conflicts with other DO SDKs (e.g., do/spaces).vnyx/laravel-psr6-cache as a bridge.Cache::get(), Cache::remember()).FileCache, Redis).composer require jord-jd/do-file-cache-psr-6 do/file-cache
config/cache.php:
'stores' => [
'do_file' => [
'driver' => 'do_file',
'path' => env('DO_CACHE_PATH', storage_path('framework/cache/do')),
'prefix' => 'do_',
'key' => env('DO_SPACES_KEY'),
'secret' => env('DO_SPACES_SECRET'),
'region' => env('DO_SPACES_REGION', 'nyc3'),
],
],
.env with DO credentials.Cache::remember() for blog posts).cache:clear logs.Cache::store('do_file')->remember('key', 60, fn() => $data);
// Fallback:
Cache::store('redis')->remember('key', 60, fn() => $data);
do/file-cache ≥v1.0. Check for breaking changes in DO’s API (e.g., Spaces v2).Cache facade, CacheItemPoolInterface, and Cache::tags().Cache::tags() invalidation) may need manual handling.config/cache.php and .env.Cache::store('file') with Cache::store('do_file') incrementally.CacheItemPoolInterface to verify PSR-6 compliance.How can I help you explore Laravel packages today?