From 061d7aee73047baa117cc9ec7e5766e9b4976908 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Sun, 15 Dec 2013 12:29:18 -0500 Subject: [PATCH] Laying out redis goodness --- classes/RedisModel.php | 8 ++++++++ config.php | 34 ++-------------------------------- models/Leaderboard.php | 8 -------- models/User.php | 4 ++-- 4 files changed, 12 insertions(+), 42 deletions(-) create mode 100644 classes/RedisModel.php diff --git a/classes/RedisModel.php b/classes/RedisModel.php new file mode 100644 index 0000000..c77126b --- /dev/null +++ b/classes/RedisModel.php @@ -0,0 +1,8 @@ + diff --git a/config.php b/config.php index 69280db..19ec414 100644 --- a/config.php +++ b/config.php @@ -31,11 +31,11 @@ $config = array( 'pickles' => array( 'disabled' => false, - 'session' => 'files', + 'session' => false, 'template' => 'index', 'module' => 'home', //'404' => 'error/404', - 'datasource' => 'mysql', + 'datasource' => false, 'cache' => 'memcached', 'profiler' => array( 'local' => false, @@ -56,21 +56,6 @@ $config = array( 'datasources' => array( 'local' => array( - 'memcached' => array( - 'type' => 'memcache', - 'hostname' => 'localhost', - 'port' => 11211, - 'namespace' => 'ELLBEE', - ), - 'mysql' => array( - 'type' => 'mysql', - 'driver' => 'pdo_mysql', - 'hostname' => 'localhost', - 'username' => 'root', - 'password' => '', - 'database' => 'leaderbin', - 'cache' => false, - ), 'redis' => array( 'type' => 'redis', 'hostname' => 'localhost', @@ -80,21 +65,6 @@ $config = array( ), ), 'production' => array( - 'memcached' => array( - 'type' => 'memcache', - 'hostname' => 'localhost', - 'port' => 11211, - 'namespace' => 'ELLBEE', - ), - 'mysql' => array( - 'type' => 'mysql', - 'driver' => 'pdo_mysql', - 'hostname' => 'localhost', - 'username' => 'leaderbin', - 'password' => '9f48580930bdcaf13c1888cd946e809e75ab8d90', - 'database' => 'leaderbin', - 'cache' => false, - ), 'redis' => array( 'type' => 'redis', 'hostname' => 'localhost', diff --git a/models/Leaderboard.php b/models/Leaderboard.php index a03ca81..e69de29 100644 --- a/models/Leaderboard.php +++ b/models/Leaderboard.php @@ -1,8 +0,0 @@ - diff --git a/models/User.php b/models/User.php index d722760..59f38e1 100644 --- a/models/User.php +++ b/models/User.php @@ -1,8 +1,8 @@