tomschlick / memcached-library Goto Github PK
View Code? Open in Web Editor NEWA CodeIgniter Library to Interface with the Memcached cache system
Home Page: http://tomschlick.com
License: MIT License
A CodeIgniter Library to Interface with the Memcached cache system
Home Page: http://tomschlick.com
License: MIT License
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
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
I was trying to use this library but i can't store data more then 5MB. is there is any way to store more then 5 MB.
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.
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.
you need to change [] to array()
memcached_library protected $errors = array();
config file [] => array()
life is short ,why I have to use php5.1.6 .Orz
any plans to add a function for set
I need this because i make social network website and i need to group cache by userid
FYI. There is a typo in the config/memcached.php file. The second configuration array ($memached['config'] = array()) is spelled wrong: $memcached['config'] = array().
How to use memcache command incr/decr ? This is no method about incr/decr in class Memcached_library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.