Giter Club home page Giter Club logo

Comments (3)

tylercollier avatar tylercollier commented on July 28, 2024

If Redis isn't installed, and you try to use it, it you will get:

PHP Fatal error:  Call to a member function connect() on a non-object in phpfastcache/drivers/redis.php on line 45

which is an un-catchable error.

This happens because you have this code in redis.php __construct()

if(class_exists("Redis")) {
    $this->instant = new Redis();
}

If the Redis class doesn't exist, you never assign to $this->instant, and thus later, $this->instant->connect($p1,$p2,$p3) thows the error.

from phpfastcache.

tylercollier avatar tylercollier commented on July 28, 2024

PS: It's probably worth mentioning in the README that using Redis requires use of phpredis, as opposed to another library such as predis.

from phpfastcache.

khoaofgod avatar khoaofgod commented on July 28, 2024

@tylercollier

  • I will add phpredis on README
  • I will add 1 more driver called "predis" on Monday, Feb 09 for who use predis.

from phpfastcache.

Related Issues (20)

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.