Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Caching Laravel Package

nette/caching

Nette Caching is a lightweight PHP caching library with a simple API and multiple storage backends (file, memory, etc.). Supports cache expiration, dependencies, tags, and automatic invalidation to speed up applications with minimal setup.

View on GitHub
Deep Wiki
Context7
v3.4.2

A housekeeping release focused on code quality: every class and method now carries clearer, more descriptive PHPDoc, type hints got sharper (both native and annotated), and static analysis is now a mandatory part of CI with the official Nette PHPStan rules. No API changes – just a tidier, better-typed codebase.

v3.4.1

This release is all about code quality and tooling. PHPStan static analysis is now a mandatory part of the CI pipeline with nette/phpstan-rules, phpDoc types have been tightened across the board, and the codebase follows stricter coding standards.

v3.4.0
  • requires PHP 8.1
  • support for PHP 8.5
  • optimized global function calls
  • removed support for Latte 2
v3.3.1
  • added PSR-16 adapter (#77)
  • support for PHP 8.4
v3.3.0
  • Bulk write implementation (#73)
  • CacheExtension: accepts complete path (BC break)
  • CacheExtension, FileStorage: checks whether directory is absolute
  • removed Nette\SmartObject
v3.2.3
  • support for PHP 8.3
v3.2.2
  • requires PHP 8.0
  • added $dependencies as a Cache::load() 3rd parameter
  • Latte: runtime helpers moved to Runtime class
v3.1.4
  • SQLiteJournal: speed up cache writing, prevent database locked error (#66)
  • CacheExtension: used getProviders()
  • Cache: returned NAMESPACE_SEPARATOR back (don't use it, it's internal) #67
v3.1.3
  • support for Latte 3
  • coding style
v3.1.2

support for PHP 8.1

v3.1.0
  • requires PHP 7.2
  • Cache::save() with closure is deprecated (BC break)
  • Cache::start() renamed to capture()
  • removed prefix I from IStorage, IJournal, IBulkReader
v3.0.2
  • compatible with PHP 8.0
  • CacheMacro: wrapped in try ... finally
  • OutputHelper: added rollback()
  • MemcachedStorage: muted warning

For the details you can have a look at the diff.

v3.0.1
  • supports PHP 7.4

For the details you can have a look at the diff.

v2.5.9
  • supports PHP 7.4

For the details you can have a look at the diff.

v3.0.0

Features

  • requires PHP 7.1
  • uses declare(strict_types=1)
  • uses PHP 7.1 scalar and return type hints
  • added Cache::NAMESPACES and support for cleaning namespace in FileStorage [Closes #52]

Changes

  • FileStorage: always creates directories (#47)
  • FileStorage: removed <?php from cache file structure (BC break)
  • removed Memcached, renamed NewMemcachedStorage -> MemcachedStorage
v2.5.8
  • fixed compatiblity with nette/object 2.5
  • phpDoc: added $var name to @param
  • phpDoc: removed inherited docs

For the details you can have a look at the diff.

v2.5.6
  • supports PHP up to 7.2
  • Revert "SQLiteJournal: checking for extension pdo_sqlite is lazy, service cache.journal is created always"

This reverts commit 7212326, it can lead to unexpected error 500 when GC is started.

For the details you can have a look at the diff.

v2.5.5
  • added Cache::NAMESPACES and support for cleaning namespace in FileStorage #52
  • CacheExtension: throws exception when is unable to create directory

For the details you can have a look at the diff.

v2.5.4
  • coding style: fixes, lowercase true/false/null

For the details you can have a look at the diff.

v2.5.3
  • Cache: do not save data with negative/zero expiration (#50)
  • Cache: create dependencies when closing macro (#49)

For the details you can have a look at the diff.

v2.5.2
  • Cache: TAGS in dependencies are converted to array list #46
  • SQLiteStorage: filesystem permissions like ordinary file (#44)

For the details you can have a look at the diff.

v2.4.7
  • Cache: TAGS in dependencies are converted to array list #46
  • SQLiteStorage: filesystem permissions like ordinary file (#44)

For the details you can have a look at the diff.

v2.5.1
  • SQLiteJournal: checking for extension pdo_sqlite is lazy, service cache.journal is created always

For the details you can have a look at the diff.

v2.4.6
  • SQLiteJournal: filesystem permissions like ordinary file #29
  • SQLiteJournal: checking for extension pdo_sqlite is lazy, service cache.journal is created always

For the details you can have a look at the diff.

v2.5.0
  • requires PHP 5.6
  • uses Nette\SmartObject
  • removed FileJournal (note that successor SQLiteJournal requires pdo-sqlite extension)
  • added bulk read support #2 #42
  • added NewMemcachedStorage using memcached extension #38
  • CacheMacro: compatibility with Latte 2.4, uses Latte provider 'cacheStorage' (and 'cacheStack')
  • CacheMacro: improved dependency on files

For the details you can have a look at the diff.

v2.4.5
  • SQLiteJournal: lazy initialization

For the details you can have a look at the diff.

v2.4.4
  • added NewMemcachedStorage using memcached extension #38
  • CacheExtension: journal service SQLiteJournal is added only when extension pdo_sqlite is loaded
  • CacheMacro: better error message

For the details you can have a look at the diff.

v2.3.5
  • added NewMemcachedStorage using memcached extension #38
  • CacheMacro: better error message

For the details you can have a look at the diff.

v2.2.7
  • Cache: fixed deadlock when exception is thrown in fallback #36

For the details you can have a look at the diff.

v2.3.4
  • Cache: fixed deadlock when exception is thrown in fallback #36
  • Cache::save() handles Throwable errors
  • CacheMacro: added warning Modifiers are not allowed here

For the details you can have a look at the diff.

v2.4.3
  • SQLiteJournal: optimizations #34
  • SQLiteJournal: fixed bug with keys with multiple priority #35
  • Cache: fixed deadlock when exception is thrown in fallback #36
  • Cache::save() handles Throwable errors
  • CacheMacro: added warning Modifiers are not allowed here

For the details you can have a look at the diff.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codraw/framework-extra-bundle
codraw/messenger
codraw/security
codraw/mailer
codraw/contracts
codraw/profiling
codraw/dependency-injection
codraw/tester
codraw/core
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony