Download the PHP package neurony/laravel-query-cache without Composer

On this page you can find all versions of the php package neurony/laravel-query-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 laravel-query-cache

Package discontinued! Check out VARBOX.IO instead.

Unfortunately this package is now discontinued.
Please check out Varbox (Laravel Admin Panel) for this functionality and much more.

Thank you!


Cache all "select" queries or only the duplicate ones for a specific Eloquent model

Build Status StyleCI Scrutinizer Code Quality

Overview

This package allows you to cache all queries of type select, or only just the duplicated ones for an Eloquent model.

Please note that because cache tagging is used, "file" or "database" cache drivers are incompatible with this package.

Compatible cache stores: array, redis, apc, memcached
Tested cache stores: array, redis

Installation

Install the package via Composer:

Publish the config file with:

Please read the config/query-cache.php config file comments as it contains extra information

Usage

Step 1

Your Eloquent models should use the Neurony\QueryCache\Traits\IsCacheable trait.

Step 2

In your .env file add the necessary environment variables:

Depending on how you set your environment variables, the next time you make select queries on that Eloquent model, after the very first run, the queries will be cached.

Extra

Using the QueryCacheService class

Please note that the Neurony\QueryCache\Services\QueryCacheService class is the actual implementation of the Neurony\QueryCache\Contracts\QueryCacheServiceContract interface.

The Neurony\QueryCache\Services\QueryCacheService class is bound to the Laravel's IoC as a singleton and aliased as cache.query.

With that being said, the recommended way of directly using the Neurony\QueryCache\Services\QueryCacheService is:

Enable / Disable query caching

You can enable or disable all query caching for your current request, by calling the enableQueryCache or disableQueryCache methods present on the Neurony\QueryCache\Services\QueryCacheService class.

Credits

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see LICENSE for more information.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.


All versions of laravel-query-cache with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.5
illuminate/contracts Version ^7.0
illuminate/support Version ^7.0
illuminate/database Version ^7.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 neurony/laravel-query-cache contains the following files

Loading the files please wait ....