PHP Classes

File: readme.md

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP Simple Cache Library   readme.md   Download  
File: readme.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Simple Cache Library
Access data in different types of cache containers
Author: By
Last change: Update readme.md
updatE
Update readme.md
Date: 5 years ago
Size: 2,192 bytes
 

Contents

Class file image Download

StyleCI

PHP Cache Manipulation Class

How to install

run in terminal/command prompt

composer require lablnet/cache

PHP Cache Manipulation Class manipulate caches in several ways.

Access data in different types of cache containers.

This package can access data in different types of cache containers. It provides different classes that implement the same operations for storing and retrieving data to be cached, like creating a cached entry, retrieving data from a cached entry, checking if a cached entry already exists, and deleting an existing cached entry. Currently it provides cache container classes using APCU, files, mcache and opcache.

This class can manipulate

- APCU Cache : APCu is APC stripped of opcode caching. The first APCu codebase was versioned 4.0.0, it was forked from the head of the APC master branch at the time. PHP 7 support is available as of APCu 5.0.0. APCu can provide a compatibility mode, such that it can provide a drop in replacement for the applicable parts of APC. - Memcache : Memcache module provides handy procedural and object oriented interface to memcached, highly effective caching daemon, which was especially designed to decrease database load in dynamic web applications. - Opcache : OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. - Cache : Cache is improves PHP performance by storing data in json format, instead of fetching record from database by running query its more fastest to fetch record from file, Cache store data in .cache file.

Examples

- APCU Cache : indexAPCU.php - Memcache : indexMemcache.php - Opcache : indexOpcache.php - Cache : indexCache.php

Issues & Contribute

Issues

If you find any issue feel free to open an issue with details

Contribution

If you want contrubute you're most welcome You should provide details of your code that you want add or changed.

Thank

Thank you so much