Giter Club home page Giter Club logo

zend_cache_backend_mongo's Introduction

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.

zend_cache_backend_mongo's People

Contributors

antonstoeckl avatar dimikot avatar holtkamp avatar johnwyles avatar torzech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.