承接 dealnews/caching 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dealnews/caching

最新稳定版本:2.4.0

Composer 安装命令:

composer require dealnews/caching

包简介

Caching PHP Library (Memcache, Redis, etc.)

README 文档

README

This library provides a standard caching interface and provides classes for Memcached and Redis which implement the interface. We created this because we were moving between different caching services and wanted a unified interface.

Todo

  • Add PSR-6 and/or PSR-16 compatible classes

Example

; config.ini in your app base directory

[caching.memcache]
caching.memcache.app.servers = 10.0.0.1:11211,10.0.0.2:11211

[caching.redis]
caching.redis.sessions.servers = 10.0.0.3,10.0.0.4
; supports redis auth and other options that the
; predis/predis library supports such as sentinel replication
caching.redis.sessions.username = someuser
caching.redis.sessions.password = XXXXXXXX
<?php

$cache = \DealNews\Caching\Cache::factory("app");
$value = $cache->get("somekey");
$cache->set("somekey", 1);
$cache->delete("somekey");

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-06-11