Giter Club home page Giter Club logo

memcached-library's People

Contributors

bobnisco avatar hasokeric avatar tomschlick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

memcached-library's Issues

Call to a member function add() on a non-object

Hello,

I am trying to integrate memcache using the example you gave and I am getting the following error.
Fatal error: Call to a member function add() on a non-object in /home/projects/public_html/droppin/app/libraries/memcached_library.php on line 122

Thanks
Abhilash

License?

Hey Tom,

I noticed there wasn't a license associated with this project. Would you be willing to release it under a BSD style license so I can use it in one of my projects?

Jud

Cached item will never expire automatically

This is a critical issue after our team reviewed the code in detail - the parameter $expiration are not passed to Memcache::add() and Memcache::replace() correctly, then these two functions treat the expiration as zero, which means the cache will never expire unless it's pushed out by Memcache's LRU purging.

Issues in file "libraries/memcached_library.php":
Line 86, 92, 194: the $expiration should be put in 4th place, and the 3rd place is for compressing flag.

Memcached_library::add_server() always return boolean FALSE

In file "libraries/memcached_library.php", line 59, since the method add_server() doesn't return any value, so by default it returns VOID inexplicitly, which will be converted to boolean FALSE and used in lilne 40; then if CI log is enabled, there is always an ERROR says "Memcached Library: Could not connect to the server named ...", no matter the server is actually connected and being used or not.

How to fix - in line 62, add "return ' at the beginning of the line.

Config File Typo

FYI. There is a typo in the config/memcached.php file. The second configuration array ($memached['config'] = array()) is spelled wrong: $memcached['config'] = array().

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.