Skip to content

Commit 8ae940e

Browse files
authored
Add a comment mentioning that FilesystemCache can be used when APCu isn't available (#662)
APCu isn't enabled by default, which makes the example crash, and there are no hints as to what the user is supposed to do about it
1 parent 6ed178f commit 8ae940e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

website/docs/other-frameworks.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ return new Picotainer([
261261
return $builder->createMiddleware();
262262
},
263263
CacheInterface::class => function() {
264+
// Any PSR-16 cache should work - APCu is recommended for good
265+
// performance, but it requires that module to be enabled. For
266+
// small scale testing with zero dependencies, FilesystemCache
267+
// can be used instead.
264268
return new ApcuCache();
265269
},
266270
Schema::class => function(ContainerInterface $container) {

0 commit comments

Comments
 (0)