Пример #1
0
 /**
  * Get Rediska path
  *
  * @return string
  */
 public static function getRediskaPath()
 {
     if (!self::$_rediskaPath) {
         self::$_rediskaPath = realpath(dirname(__FILE__) . '/..');
     }
     return self::$_rediskaPath;
 }
Пример #2
0
<?php

// Register autoloader
require_once dirname(__FILE__) . '/Rediska/Autoloader.php';
Rediska_Autoloader::register();
/**
 * Rediska (radish on russian) - PHP client 
 * for key-value database Redis (http://code.google.com/p/redis)
 * 
 * @author Ivan Shumkov
 * @package Rediska
 * @version 0.5.6
 * @link http://rediska.geometria-lab.net
 * @license http://www.opensource.org/licenses/bsd-license.php
 */
class Rediska extends Rediska_Options
{
    /**
     * End of line
     * 
     * @var string
     */
    const EOL = "\r\n";
    /**
     * Current stable Redis version
     * 
     * @var string
     */
    const STABLE_REDIS_VERSION = '2.2.1';
    /**
     * Default client name