Download the PHP package henzeb/laravel-cache-index without Composer

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

Cache Index for Laravel

Build Status Latest Version on Packagist Total Downloads Test Coverage License

When you have a situation where you need to be able to track keys, you can use tags. Unfortunately tags aren't supported by all drivers, and retrieving keys is only doable the hacky way with redis.

Cache Index for Laravel provides a driver-independent way for managing such indexes.

Installation

Just install with the following command.

Usage

Under the hood, index returned an extended Illuminate\Cache\Repository object, which manages your index.

See Laravel doc's for the possible methods.

keys are prefixed with the index name, so that you can't accidentally overwrite any values belonging to that index.

Note: tags are currently not supported when using index.

``

index name

The index name can, next to a regular string, also be applied as an array. This is handy when you have an index based on variables.

``

Keys

Retrieving a list of keys is very easy.

``

Count

With this method, you can know how many keys are inside your index.

``

Copy & Move

Copy

Makes a copy of a cached item, and adds the key in the new index.

It returns true if it's successful, false otherwise.

``

Move

Does the same as Copy, except that it removes its own copy.

It returns true if it's successful, false otherwise.

``

Note: Be aware that either copy and move do nothing with the TTL. It creates a new copy of the cached item with a new TTL if given.

pop

Just like with arrays, takes and removes the last indexed key and returns the value associated with that index.

shift

Just like with arrays, takes and removes the first indexed key and returns the value associated with that index.

random

returns a random value.

randomKey

returns a random key.

pullRandom

Returns a random value and pulls it from the cache.

syncTtl

Allows you to synchronize the ttl between indexed keys.

``

Testing this package

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

The GNU AGPLv. Please see License File for more information.


All versions of laravel-cache-index with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
henzeb/var-export-wrapper Version ^1.1
illuminate/support Version ^10.0|^11.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 henzeb/laravel-cache-index contains the following files

Loading the files please wait ....