All Projects → sonata-project → Cache

sonata-project / Cache

Licence: mit
Cache library

Projects that are alternatives of or similar to Cache

Phpfastcache
A high-performance backend cache system. It is intended for use in speeding up dynamic web applications by alleviating database load. Well implemented, it can drops the database load to almost nothing, yielding faster page load times for users, better resource utilization. It is simple yet powerful.
Stars: ✭ 2,171 (+600.32%)
Mutual labels:  redis, mongodb, cache, memcached
Cachego
Golang Cache component - Multiple drivers
Stars: ✭ 148 (-52.26%)
Mutual labels:  redis, mongodb, cache, memcached
Zhttp
基于swoole的异步轻量级web框架,内部封装协程异步非阻塞全套mysql、redis、mongo、memcached连接池,可以轻松start、reload、stop,加入数据库的查询模块,框架已经封装好近乎同步写法,底层异步调用
Stars: ✭ 131 (-57.74%)
Mutual labels:  redis, mongodb, memcached
Sequelize Transparent Cache
Simple to use and universal cache layer for Sequelize
Stars: ✭ 137 (-55.81%)
Mutual labels:  redis, cache, memcached
Zapi
基于swoole的异步轻量级api框架,内部封装全套mysql、redis、mongo、memcached异步客户端,可以轻松start、reload、stop,加入数据库的查询模块,框架已经封装好近乎同步写法,底层异步调用。现已支持异步mysql、异步redis、异步http请求.
Stars: ✭ 245 (-20.97%)
Mutual labels:  redis, mongodb, memcached
Dtcqueuebundle
Symfony2/3/4/5 Queue Bundle (for background jobs) supporting Mongo (Doctrine ODM), Mysql (and any Doctrine ORM), RabbitMQ, Beanstalkd, Redis, and ... {write your own}
Stars: ✭ 115 (-62.9%)
Mutual labels:  redis, mongodb, symfony
Mdserver Mac
mdserver (mac version, secondary development)
Stars: ✭ 121 (-60.97%)
Mutual labels:  redis, mongodb, memcached
Scrapbook
PHP cache library, with adapters for e.g. Memcached, Redis, Couchbase, APC(u), SQL and additional capabilities (e.g. transactions, stampede protection) built on top.
Stars: ✭ 279 (-10%)
Mutual labels:  redis, cache, memcached
Weixinmpsdk
微信全平台 SDK Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 6.0。已支持微信公众号、小程序、小游戏、企业号、企业微信、开放平台、微信支付、JSSDK、微信周边等全平台。 WeChat SDK for C#.
Stars: ✭ 7,098 (+2189.68%)
Mutual labels:  redis, cache, memcached
Senparc.co2net
支持 .NET Framework & .NET Core 的公共基础扩展库
Stars: ✭ 289 (-6.77%)
Mutual labels:  redis, cache, memcached
Springbootlearning
《Spring Boot教程》源码
Stars: ✭ 2,065 (+566.13%)
Mutual labels:  redis, mongodb, cache
Ansible Role Redis
Ansible Role - Redis
Stars: ✭ 176 (-43.23%)
Mutual labels:  redis, cache, memcached
Ymate Platform V2
YMP是一个非常简单、易用的轻量级Java应用开发框架,涵盖AOP、IoC、WebMVC、ORM、Validation、Plugin、Serv、Cache等特性,让开发工作像搭积木一样轻松!
Stars: ✭ 106 (-65.81%)
Mutual labels:  redis, mongodb, cache
Easycaching
💥 EasyCaching is an open source caching library that contains basic usages and some advanced usages of caching which can help us to handle caching more easier!
Stars: ✭ 1,047 (+237.74%)
Mutual labels:  redis, cache, memcached
Overlord
Overlord是哔哩哔哩基于Go语言编写的memcache和redis&cluster的代理及集群管理功能,致力于提供自动化高可用的缓存服务解决方案。
Stars: ✭ 1,884 (+507.74%)
Mutual labels:  redis, cache, memcached
Netkiller.github.io
Netkiller Free ebook - 免费电子书
Stars: ✭ 861 (+177.74%)
Mutual labels:  redis, mongodb, memcached
Machinery
Machinery is an asynchronous task queue/job queue based on distributed message passing.
Stars: ✭ 5,821 (+1777.74%)
Mutual labels:  redis, mongodb, memcached
Zxw.framework.netcore
基于EF Core的Code First模式的DotNetCore快速开发框架,其中包括DBContext、IOC组件autofac和AspectCore.Injector、代码生成器(也支持DB First)、基于AspectCore的memcache和Redis缓存组件,以及基于ICanPay的支付库和一些日常用的方法和扩展,比如批量插入、更新、删除以及触发器支持,当然还有demo。欢迎提交各种建议、意见和pr~
Stars: ✭ 691 (+122.9%)
Mutual labels:  redis, mongodb, memcached
Cachemanager
CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.
Stars: ✭ 2,049 (+560.97%)
Mutual labels:  redis, cache, memcached
Zend Diagnostics
Universal set of diagnostic tests for PHP applications.
Stars: ✭ 192 (-38.06%)
Mutual labels:  redis, mongodb, memcached

Cache

Build Status

Cache is a small library to handle cache backend, the library also handle counter.

Installation using Composer

composer require sonata-project/cache

Cache Usage

<?php

use Sonata\Cache\Adapter\Cache\PRedisCache;

$adapter = new PRedisCache([
    'host'     => '127.0.0.1',
    'port'     => 6379,
    'database' => 42,
]);

$keys = [
    'objectId' => 10,
];

$adapter->set($keys, 'MyValue', 86400);

$cacheElement = $adapter->get($keys);

$cacheElement->getData(); // MyValue

Counter Usage

<?php

use Sonata\Cache\Adapter\Counter\PRedisCounter;

$adapter = new PRedisCounter([
    'host'     => '127.0.0.1',
    'port'     => 6379,
    'database' => 42,
]);


$counter = $adapter->increment('mystats');

// $counter is a Counter object
$counter->getValue(); // will return 1 if the counter is new

$counter = $adapter->increment($counter, 10);

$counter->getValue(); // will return 11

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].