Giter VIP home page Giter VIP logo

lsredis's Introduction

lsredis

Lemonstand Redis module. Uses the Predis library ( version 0.8.3 ) to allow Redis as an option for caching in Lemonstand.

Installation

  • Clone/download lsredis into the modules directory of your Lemonstand installation
  • Add the following to your config.php file, which is located in the config folder at the base of your installation. Please change <host> and <port> to match your needs. For a default Redis install, '127.0.0.1:6379' should work.
$CONFIG['CACHING'] = array(
  'CLASS_NAME'          => 'LsRedis_RedisCache',  
  'DISABLED'            => false, 
  'PARAMS'              => array(
    'SERVERS' => array( '<host>:<port>'),
    'TTL'     => 3600
  )
);

Note

Daniele Alessandri (twitter) is the author of Predis. I am merely using it as the library to make the connection.

License

The code for lsredis is distributed under the terms of the MIT license (see LICENSE).

lsredis's People

Contributors

ccraig avatar

Watchers

 avatar

lsredis's Issues

THANK YOU!

I just wanted to send a quick note to say thank you for putting this together. I implemented this last night on one of my LemonStand installs, added cache parameters to a few partials and everything just worked. I got everything up and running on production shortly thereafter.

Have you considered contacting Aleksey to see if he'd consider including this as part of the core? It seems that Redis is just as popular as memcache or apc these days..

Either way, just wanted to say thanks for your hard work! I've forked your repo and if I can find any way to contribute, I'll be sure to do so!

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.