Zend Framework cache backend for MongoDB

Overview

Zend_Cache_Backend_Mongo

Author: Anton Stöckl

About

Zend_Cache_Backend_Mongo is a Zend Framework Cache Backend for MongoDB. It supports tags and autocleaning.

Dependencies

Zend_Cache_Backend_Mongo requires the MongoDB database version 1.1.1 or above as it use MapReduce for some features. It has been tested with database version 2.0.0 and 2.0.1.

Installation

See http://framework.zend.com/manual/en/zend.cache.backends.html about how to add a new Backend for Zend_Cache

Configuration

See http://framework.zend.com/manual/en/zend.cache.backends.html about how to configure cache backends. Constructor options for this backend:

Associative array with following fields:

  • 'host' => (string) : the name of the mongodb server
  • 'port' => (integer) : the port of the mongodb server
  • 'persistent' => (bool) : use or not persistent connections to this mongodb server
  • 'collection' => (string) : name of the collection to use
  • 'dbname' => (string) : name of the database to use

Credits

Original author: Olivier Bregeras

Changes against original version from Stunti

  • fixed function getTags() as the map reduce syntax was wrong (for MongoDB 2.0.0)
  • added indexes for optimal performance
  • added field 'expire' so that cleaning with Zend_Cache::CLEANING_MODE_OLD does not need to have a function
  • removed the tests and the queue folder

License

Zend_Cache_Backend_Mongo is licensed under the New BSD License http://framework.zend.com/license/new-bsd See LICENSE for details.

You might also like...
LRU Cache implementation in PHP

PHP LRU Cache implementation Intro WTF is a LRU Cache? LRU stands for Least Recently Used. It's a type of cache that usually has a fixed capacity and

Simple cache abstraction layer implementing PSR-16

sabre/cache This repository is a simple abstraction layer for key-value caches. It implements PSR-16. If you need a super-simple way to support PSR-16

PSR-6 cache implementation adapting a given PSR-16 instance

PSR-6 cache implementation adapting PSR-16 This package provides a PSR-6 cache instance when you only have a PSR-16 cache at hand. As PSR-6 is more fe

More Than Just a Cache: Redis Data Structures
More Than Just a Cache: Redis Data Structures

More Than Just a Cache: Redis Data Structures Redis is a popular key-value store, commonly used as a cache or message broker service. However, it can

Simple cache

Simple cache

Elephant - a highly performant PHP Cache Driver for Kirby 3

🐘 Kirby3 PHP Cache-Driver Elephant - a highly performant PHP Cache Driver for Kirby 3 Commerical Usage Support open source! This plugin is free but i

An improved helper for working with cache

Laravel Cache Installation To get the latest version of Laravel Cache, simply require the project using Composer: $ composer require dragon-code/larav

PHP local cache

__ ____ _________ ______/ /_ ___ / __ \/ ___/ __ `/ ___/ __ \/ _ \ / /_/ / /__/ /_/ / /__/ / / / __/ / ._

A fast, lock-free, shared memory user data cache for PHP

Yac is a shared and lockless memory user data cache for PHP.

Comments
Releases(v1.0.1)
Owner
Anton Stöckl
Anton Stöckl
A high-performance backend cache system. It is intended for use in speeding up dynamic web applications by alleviating database load.

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.

PHPSocialNetwork 2.3k Dec 30, 2022
A clean and responsive interface for Zend OPcache information,

A clean and responsive interface for Zend OPcache information, showing statistics, settings and cached files, and providing a real-time update for the information.

Andrew Collington 1.1k Dec 27, 2022
Simple and swift MongoDB abstraction.

Monga A simple and swift MongoDB abstraction layer for PHP 5.4+ What's this all about? An easy API to get connections, databases and collections. A fi

The League of Extraordinary Packages 330 Nov 28, 2022
This is a Symfony bundle that lets you you integrate your PSR-6 compliant cache service with the framework

PSR-6 Cache bundle This is a Symfony bundle that lets you you integrate your PSR-6 compliant cache service with the framework. It lets you cache your

null 43 Oct 7, 2021
The place to keep your cache.

Stash - A PHP Caching Library Stash makes it easy to speed up your code by caching the results of expensive functions or code. Certain actions, like d

Tedious Developments 944 Jan 4, 2023
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.

Donate/Support: Documentation: https://www.scrapbook.cash - API reference: https://docs.scrapbook.cash Table of contents Installation & usage Adapters

Matthias Mullie 295 Nov 28, 2022
Cache slam defense using a semaphore to prevent dogpile effect.

metaphore PHP cache slam defense using a semaphore to prevent dogpile effect (aka clobbering updates, stampending herd or Slashdot effect). Problem: t

Przemek Sobstel 102 Sep 28, 2022
:zap: Simple Cache Abstraction Layer for PHP

⚡ Simple Cache Class This is a simple Cache Abstraction Layer for PHP >= 7.0 that provides a simple interaction with your cache-server. You can define

Lars Moelleken 27 Dec 8, 2022
Doctrine Cache component

Doctrine Cache Cache component extracted from the Doctrine Common project. Documentation This library is deprecated and will no longer receive bug fix

Doctrine 7.6k Jan 3, 2023