Laying out redis goodness
This commit is contained in:
parent
9a0e355cec
commit
061d7aee73
4 changed files with 12 additions and 42 deletions
8
classes/RedisModel.php
Normal file
8
classes/RedisModel.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class RedisModel extends Object
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
34
config.php
34
config.php
|
@ -31,11 +31,11 @@ $config = array(
|
||||||
|
|
||||||
'pickles' => array(
|
'pickles' => array(
|
||||||
'disabled' => false,
|
'disabled' => false,
|
||||||
'session' => 'files',
|
'session' => false,
|
||||||
'template' => 'index',
|
'template' => 'index',
|
||||||
'module' => 'home',
|
'module' => 'home',
|
||||||
//'404' => 'error/404',
|
//'404' => 'error/404',
|
||||||
'datasource' => 'mysql',
|
'datasource' => false,
|
||||||
'cache' => 'memcached',
|
'cache' => 'memcached',
|
||||||
'profiler' => array(
|
'profiler' => array(
|
||||||
'local' => false,
|
'local' => false,
|
||||||
|
@ -56,21 +56,6 @@ $config = array(
|
||||||
|
|
||||||
'datasources' => array(
|
'datasources' => array(
|
||||||
'local' => 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(
|
'redis' => array(
|
||||||
'type' => 'redis',
|
'type' => 'redis',
|
||||||
'hostname' => 'localhost',
|
'hostname' => 'localhost',
|
||||||
|
@ -80,21 +65,6 @@ $config = array(
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'production' => 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(
|
'redis' => array(
|
||||||
'type' => 'redis',
|
'type' => 'redis',
|
||||||
'hostname' => 'localhost',
|
'hostname' => 'localhost',
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
class Leaderboard extends Model
|
|
||||||
{
|
|
||||||
protected $table = 'leaderboard';
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class User extends Model
|
class User extends RedisModel
|
||||||
{
|
{
|
||||||
protected $table = 'users';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue