Skip to content

Commit

Permalink
Add Memcache
Browse files Browse the repository at this point in the history
  • Loading branch information
lincanbin committed Mar 25, 2015
1 parent 68894d3 commit 5059ebb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config.php
Expand Up @@ -3,11 +3,16 @@
$SALT = 'AuthorIsLinCanbin';//Salt,用于Cookie与Form,随便改
$Prefix = 'carbon_';
define('InternalAccess', true);
define('ForumLanguage', 'zh-cn');
/*模板文件使用
if (!defined('InternalAccess')) exit('error: 403 Access Denied');
来防止模板文件被游客访问
*/
define('ForumLanguage', 'zh-cn');
//MemCache(d)
define('EnableMemcache', true & class_exists('Memcache'));
define('MemCacheHost', '127.0.0.1');
define('MemCachePort', '11211');
//Database
define('DBHost', '127.0.0.1');
define('DBName', 'carbon');
define('DBUser', 'root');
Expand Down

0 comments on commit 5059ebb

Please sign in to comment.