承接 awonderphp/simplecacheredis 相关项目开发

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

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

awonderphp/simplecacheredis

Composer 安装命令:

composer require awonderphp/simplecacheredis

包简介

An implementation of the PSR-16 SimpleCache Interface for Redis with optional AEAD encryption

README 文档

README

This is an implementation of PSR-16 for the Redis caching engine.

Two different classes are provided. The first just provides a PSR-16 compliant interface to Redis and the second provides encryption of the cached data via the libsodium extension.

Please refer to the files INSTALL.md, USAGE.md, and SURVIVAL.md for more information specific to SimpleCacheRedis.

For instructions specific to the encryption option. see the file SODIUM.md.

Please refer to the file LICENSE.md for the terms of the MIT License this software is released under.

About Redis Caching

Redis does far more than just behave as a caching engine, according to the web site https://redis.io it provides an in-memory data structure that can be used as a database, cache, and message broker.

For this PSR-16 implementation, using it as a PHP object cache is all that matters, but redis itself is capable of some incredible things beyond the scope of this class.

While looking at various benchmarks, it appears to me that in the use case scenarios that best match a PSR-16 implementation, APCu is faster than Redis. However there are several compelling reasons as to why Redis may be the better choice for some situations:

  • Redis cache survives a web server daemon restart.
  • Redis cache (unless configured not to) survives a server reboot.
  • Redis cache can be made accessible to other servers in your network.
  • Redis cache can use a cluster if you have a lot of data you need to have handled by a caching engine.

If you just have a single server scenario that does not need to share its cached with other servers, APCu may be the better choice for PSR-16 caching needs, see
SimpleCacheAPCu for a PSR-16 implementation for APCu.

About PHP-FIG and PSR-16

PHP-FIG is the PHP Framework Interop Group. They exist largely to create standards that make it easier for different developers around the world to create different projects that will work well with each other. PHP-FIG was a driving force behind the PSR-0 and PSR-4 auto-load standards for example that make it much much easier to integrate PHP class libraries written by other people into your web applications.

The PHP-FIG previously released PSR-6 as a Caching Interface standard but the interface requirements of PSR-6 are beyond the needs of many web application developers. KISS - ‘Keep It Simple Silly’ applies for many of us who do not need some of the features PSR-6 requires.

To meet the needs of those of us who do not need what PSR-6 implements, PSR-16 was developed and is now an accepted standard.

When I read PSR-16, the defined interface it was not that different from my own APCu caching class that I have personally been using for years. So I decided to make my class meet the interface requirements.

Then a Redis user asked me if I could possibly adapt the library for Redis. So I did and this is the result.

Coding Standard

The coding standard used is primarily PSR-2 except with the closing ?> allowed, and the addition of some PHPDoc requirements largely but not completely borrowed from the PEAR standard.

The intent is switch PHPDoc standard to PSR-5 if it ever becomes an accepted standard.

The phpcs sniff rules being used: psr2.phpcs.xml

About AWonderPHP

I may become homeless before the end of 2018. I do not know how to survive, I try but what I try, it always seems to fail. This just is not a society people like me are meant to be a part of.

If I do become homeless, I fear my mental health will deteriorate at an accelerated rate and I do not want to witness that happening to myself.

AWonderPHP is my attempt to clean up and package a lot of the PHP classes I personally use so that something of me will be left behind.

If you wish to help, please see the SURVIVAL.md file.

Thank you for your time.

EOF

awonderphp/simplecacheredis 适用场景与选型建议

awonderphp/simplecacheredis 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 03 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 awonderphp/simplecacheredis 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 awonderphp/simplecacheredis 我们能提供哪些服务?
定制开发 / 二次开发

基于 awonderphp/simplecacheredis 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-20