Skip to content

Commit

Permalink
Add a comment mentioning that FilesystemCache can be used when APCu i…
Browse files Browse the repository at this point in the history
…sn'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
  • Loading branch information
shish authored Mar 23, 2024
1 parent 6ed178f commit 8ae940e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/docs/other-frameworks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ return new Picotainer([
return $builder->createMiddleware();
},
CacheInterface::class => function() {
// Any PSR-16 cache should work - APCu is recommended for good
// performance, but it requires that module to be enabled. For
// small scale testing with zero dependencies, FilesystemCache
// can be used instead.
return new ApcuCache();
},
Schema::class => function(ContainerInterface $container) {
Expand Down

0 comments on commit 8ae940e

Please sign in to comment.