Download the PHP package spiritix/lada-cache without Composer

On this page you can find all versions of the php package spiritix/lada-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lada-cache

Lada Cache

A Redis-based, fully automated, and scalable query cache layer for Laravel.

Tests Coverage Downloads Version License

Lada Cache 6.x - a focused rewrite for Laravel 12 / 13 and PHP 8.3, addressing many long-standing issues and adding new features.

Table of Contents

Features

Version Compatibility

Laravel PHP Lada Cache
5.1-5.6 5.6.4+ 2.x
5.7-5.8 7.1+ 3.x
6.x 7.2+ 4.x
7.x 7.2+ 5.x
8.x 7.3+ 5.x
9.x-11.x 8.0+ 5.x
12.x 8.3+ 6.x
13.x 8.3+ 6.x

Architecture

Lada Cache integrates with Laravel’s database layer by registering a Lada-aware connection, which returns a custom query builder to intercept and cache SQL operations automatically.

Query lifecycle:

  1. Intercept query → Reflector analyzes SQL, bindings, and affected tables.
  2. Compute cache key → Based on SQL + parameters + database.
  3. Lookup in Redis → If cached, return immediately.
  4. Execute + store → If not cached, execute query and store result.
  5. Auto-invalidate → On any insert, update, delete, or truncate.

The result is automatic, consistent caching across all database operations.

Performance

Real-world gains range from 5% to 95%, depending on how many and how complex your queries are. Typical Laravel apps see ~10–30% faster responses and a significant drop in DB load.

Why?

Lada Cache provides automated, granular, distributed caching with transparent invalidation and scale-out via Redis.

Why only Redis?

Therefore, Lada Cache builds directly on top of Laravel Redis. If you need another backend, contributions are welcome.

Installation

Install via Composer:

Lada Cache registers itself automatically via Laravel Package Discovery.

Then, publish the config file:

Finally, ensure all your Eloquent models include the trait:

💡 It’s best to add the trait in a shared BaseModel class that all models extend.

Configuration

After publishing the configuration file (see Installation), you will find a comprehensive config file at config/lada-cache.php.

This file allows you to fine-tune cache behavior, such as:

The default configuration is already optimized for most Laravel applications, so you typically won’t need to modify it unless you want more granular control.

Usage

After installation, Lada Cache works automatically.
No code changes or caching calls are required - all database queries are transparently cached and invalidated.

You can control global behavior via .env:

Bypassing the cache per query

Use withoutCache() to opt a single query out of caching. The query skips both read caching and write invalidation, then continues through Laravel as usual:

This is useful for freshness-critical reads, diagnostics, or ad-hoc cache busting without touching the configuration.

Console Commands

Known Issues and Limitations

Contributing

Pull requests and issue reports are welcome!

License

Lada Cache is open-source software licensed under the MIT License.


All versions of lada-cache with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^13.0
illuminate/database Version ^13.0
illuminate/redis Version ^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package spiritix/lada-cache contains the following files

Loading the files please wait ...