Download the PHP package mehr-it/lara-local-synchronized-cache without Composer

On this page you can find all versions of the php package mehr-it/lara-local-synchronized-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 lara-local-synchronized-cache

Lara local synchronized cache

High-performance local cache which synchronizes automatically on distributed systems.

Introduction

Using PHP files for caching data is one of the fastest caching methods for PHP. Especially opcache makes this method very fast. However, this caching method cannot be used for distributed systems without any kind of synchronization.

This package implements a fast and synchronized local cache. Locally cached data is synchronized periodically and every time when processing a queued job.

The local cache state is synchronized using a common cache backend such as redis or whatever network cache you prefer.

Installation

Install via composer:

composer require mehr-it/lara-local-synchronized-cache

Configuration

'local-sync' => [
    'driver' => 'local-synchronized',

    // path for cache data
    'path'   => storage_path('framework/cache/local-sync'),

    // name of the cache used for synchronizing the global state
    'shared_store' => null,

    // time to live for locally cached data (in seconds) before the global state is synchronized again 
    'local_ttl' => 60,

    // prefix for keys in shared store
    'shared_store_pfx' => 'loc-sync-cache_',

    // set file permission
    'file_permission' => 0644,

    // set directory permission
    'directory_permission' => 0755,
],

All versions of lara-local-synchronized-cache with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
laravel/framework Version ^6.0|^7.0|^8.0
mehr-it/php-cache Version ^1.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 mehr-it/lara-local-synchronized-cache contains the following files

Loading the files please wait ....