Example #1
0
 public static function instance()
 {
     if (!isset(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Example #2
0
        echo Redis_Helper::instance()->getType($key);
        ?>
            </td>
            <td>
                <?php 
        echo Redis_Helper::instance()->getTTL($key);
        ?>
            </td>
            <td>
                <?php 
        echo Redis_Helper::instance()->getEncoding($key);
        ?>
            </td>
            <td>
                <?php 
        echo Redis_Helper::instance()->getSize($key);
        ?>
            </td>
            <td>
                <a href="<?php 
        echo $this->router->url;
        ?>
/keys/expire/<?php 
        echo $this->app->current['serverId'] . '/' . $this->app->current['database'];
        ?>
/<?php 
        echo urlencode($key);
        ?>
" target="_blank" class="action">
                    <i class="icon icon-time"></i>
                </a>