pfinal/cache

php cache、psr simple-cache、memcache redis file array

Maintainers

Details

github.com/pfinal/cache

Source

Issues

Installs: 4 019

Dependents: 2

Suggesters: 0

Security: 0

Stars: 4

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/pfinal/cache

v1.2.1 2018-01-16 03:49 UTC

This package is auto-updated.

Last update: 2025-10-13 19:30:56 UTC


README

缓存

PHP交流 QQ 群:16455997

环境要求:PHP >= 5.3

使用 composer

composer require pfinal/cache

示例

<?php

require 'vendor/autoload.php';

$cache = new \PFinal\Cache\FileCache();

$cache->set('name', 'Ethan', 60); //缓存60秒

echo $cache->get('name');

使用Redis缓存,需要:

composer require predis/predis