diff options
| author | Horus3 | 2014-11-12 13:02:47 +0100 |
|---|---|---|
| committer | Horus3 | 2014-11-12 13:02:47 +0100 |
| commit | c93803e324f69f50b3971e61037e53952dafefe3 (patch) | |
| tree | 62a31249ab65cb227a74459b2207058ec6c7057c /redis.php | |
| parent | bdb371491a0b79029f180d54d76910efa8f5c79e (diff) | |
| download | httpheader-c93803e324f69f50b3971e61037e53952dafefe3.tar.gz | |
Added Request Method + Inlined Redis Cache
Diffstat (limited to 'redis.php')
| -rw-r--r-- | redis.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/redis.php b/redis.php deleted file mode 100644 index 36e0d98..0000000 --- a/redis.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php - -$redis = new Redis(); -$redis ->connect("/var/run/redis/redis.sock"); -$redis->ping(); -$redis->select(9); - -$key = md5( $url . serialize($customHeader) ); - -if( $redis->exists( $key ) ){ - return unserialize( $redis->get( $key ) ); -} - -/* -if ( $setCache ){ - $redis->set( $key, serialize($result), 60 ); -} -*/ |
