File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ You can use any PSR-16 compatible cache implementation:
6464 use Symfony\Component\Cache\Adapter\FilesystemAdapter;
6565 use Symfony\Component\Cache\Psr16Cache;
6666
67- $pool = new FilesystemAdapter('inventory', 3600, $cacheDir );
67+ $pool = new FilesystemAdapter('inventory', 3600, '/path/to/cache' );
6868 $cache = new Psr16Cache($pool);
6969
7070 **Redis Cache ** (for shared/distributed caching):
@@ -94,7 +94,7 @@ caching with persistent storage:
9494 // L1: In-memory (fast) -> L2: Filesystem (persistent)
9595 $chain = new ChainAdapter([
9696 new ArrayAdapter(), // Check memory first
97- new FilesystemAdapter('inventory', 3600, $dir ), // Fall back to disk
97+ new FilesystemAdapter('inventory', 3600, '/path/to/cache' ), // Fall back to disk
9898 ]);
9999
100100 $cache = new Psr16Cache($chain);
You can’t perform that action at this time.
0 commit comments