Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
/ doctrine-cache Public archive

[DISCONTINUED] πŸ”ƒ Doctrine Cache adapter for Nette Framework

License

Notifications You must be signed in to change notification settings

contributte/doctrine-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

47 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Website πŸš€ contributte.org | Contact πŸ‘¨πŸ»β€πŸ’» f3l1x.io | Twitter 🐦 @contributte

Disclaimer

⚠️ This project is no longer being maintained. Please use symfony/cache.
Composer nettrine/cache
Version
PHP
License

About

Integration of Doctrine Cache for Nette Framework.

Installation

Install package using composer.

composer require nettrine/cache

Register prepared compiler extension in your config.neon file.

extensions:
  nettrine.cache: Nettrine\Cache\DI\CacheExtension

Configuration

Minimal configuration

nettrine.cache:
  adapter: Symfony\Component\Cache\Adapter\FilesystemAdapter(directory: %tempDir%/cache/nettrine-cache)

Advanced configuration

nettrine.cache:
 adapter: <class|service>

Warning

Cache adapter must implement Psr\Cache\CacheItemPoolInterface interface. Use any PSR-6 + PSR-16 compatible cache library like symfony/cache or nette/caching.

In the simplest case, you can define only adapter.

nettrine.cache:
  # Create cache manually
  adapter: App\CacheService(%tempDir%/cache/orm)

  # Use registered cache service
  adapter: @cacheService

Important

You should always use cache for production environment. It can significantly improve performance of your application. Pick the right cache adapter for your needs. For example from symfony/cache:

  • FilesystemAdapter - if you want to cache data on disk
  • ArrayAdapter - if you want to cache data in memory
  • ApcuAdapter - if you want to cache data in memory and share it between requests
  • RedisAdapter - if you want to cache data in memory and share it between requests and servers
  • ChainAdapter - if you want to cache data in multiple storages

The extension will automatically guess the best cache adapter for you.

  • FilesystemAdapter - if you have tempDir defined
  • ArrayAdapter - if you are in CLI mode
  • ApcuAdapter - if you have apcu extension enabled
  • defined - if you have defined adapter in configuration

Usage

There is no need to use cache directly. It is used by other packages like:

Versions

State Version Branch Nette PHP
dev ^0.6 master 3.2+ >=8.2
stable ^0.5 master 3.2+ >=8.2

Development

This package was maintained by these authors.


Consider to support contributte development team. Also thank you for using this package.

About

[DISCONTINUED] πŸ”ƒ Doctrine Cache adapter for Nette Framework

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors 9