Mini Shell

Direktori : /home/admin/web/mcpv.demarco.ddnsfree.com/public_html/wp-includes/SimplePie/Cache/
Upload File :
Current File : /home/admin/web/mcpv.demarco.ddnsfree.com/public_html/wp-includes/SimplePie/Cache/Redis.php

<?php

/**
 * SimplePie Redis Cache Extension
 *
 * @package SimplePie
 * @author Jan Kozak <galvani78@gmail.com>
 * @link http://galvani.cz/
 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
 * @version 0.2.9
 */


/**
 * Caches data to redis
 *
 * Registered for URLs with the "redis" protocol
 *
 * For example, `redis://localhost:6379/?timeout=3600&prefix=sp_&dbIndex=0` will
 * connect to redis on `localhost` on port 6379. All tables will be
 * prefixed with `simple_primary-` and data will expire after 3600 seconds
 *
 * @package SimplePie
 * @subpackage Caching
 * @uses Redis
 */
class SimplePie_Cache_Redis implements SimplePie_Cache_Base {
    /**
     * Redis instance
     *
     * @var \Redis
     */
    protected $cache;

    /**
     * Options
     *
     * @var array
     */
    protected $options;

    /**
     * Cache name
     *
     * @var string
     */
    protected $name;

    /**
     * Cache Data
     *
     * @var type
     */
    protected $data;

    /**
     * Create a new cache object
     *
     * @param string $location Location string (from SimplePie::$cache_location)
     * @param string $name Unique ID for the cache
     * @param string $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
     */
    public function __construct($location, $name, $options = null) {
        //$this->cache = \flow\simple\cache\Redis::getRedisClientInstance();
        $parsed = SimplePie_Cache::parse_URL($location);
        $redis = new Redis();
        $redis->connect($parsed['host'], $parsed['port']);
        if (isset($parsed['pass'])) {
            $redis->auth($parsed['pass']);
        }
        if (isset($parsed['path'])) {
            $redis->select((int)substr($parsed['path'], 1));
        }
        $this->cache = $redis;

        if (!is_null($options) && is_array($options)) {
            $this->options = $options;
        } else {
            $this->options = array (
                'prefix' => 'rss:simple_primary:',
                'expire' => 0,
            );
        }

        $this->name = $this->options['prefix'] . $name;
    }

    /**
     * @param \Redis $cache
     */
    public function setRedisClient(\Redis $cache) {
        $this->cache = $cache;
    }

    /**
     * Save data to the cache
     *
     * @param array|SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
     * @return bool Successfulness
     */
    public function save($data) {
        if ($data instanceof SimplePie) {
            $data = $data->data;
        }
        $response = $this->cache->set($this->name, serialize($data));
        if ($this->options['expire']) {
            $this->cache->expire($this->name, $this->options['expire']);
        }

        return $response;
    }

    /**
     * Retrieve the data saved to the cache
     *
     * @return array Data for SimplePie::$data
     */
    public function load() {
        $data = $this->cache->get($this->name);

        if ($data !== false) {
            return unserialize($data);
        }
        return false;
    }

    /**
     * Retrieve the last modified time for the cache
     *
     * @return int Timestamp
     */
    public function mtime() {

        $data = $this->cache->get($this->name);

        if ($data !== false) {
            return time();
        }

        return false;
    }

    /**
     * Set the last modified time to the current time
     *
     * @return bool Success status
     */
    public function touch() {

        $data = $this->cache->get($this->name);

        if ($data !== false) {
            $return = $this->cache->set($this->name, $data);
            if ($this->options['expire']) {
                return $this->cache->expire($this->name, $this->options['expire']);
            }
            return $return;
        }

        return false;
    }

    /**
     * Remove the cache
     *
     * @return bool Success status
     */
    public function unlink() {
        return $this->cache->set($this->name, null);
    }

}
The factory supplies high quality management – Base de données MCPV "Prestataires"

The factory supplies high quality management

Women’s Purses & Handbags Made Within The Usa The Great American Made Brands & Merchandise Listing

Here are the top 5 handmade bag manufacturers to check out. The factory supplies high quality management, product design, and personal labeling services. The company provides personal labeling, in-house design 187factory.edu.kg, and quality control. They even have computerized stitching and handmade products.

Enhance your brand with custom cloth baggage, crafted in our bag manufacturing facility for businesses seeking luxurious, sustainability, and functionality. Available wholesale, these high-quality luggage are excellent for retail, company gifts, and promotions. Deeya Bags is a bag producer in West Bengal, India. It has an workplace and a manufacturing facility that primarily produces leather 187 Factory Bags, canvas, nylon handbags as well as leather-based wallets. Besides, its market is predicated in Europe, the USA and Australia.

The Sitoy Group has a well-deserved status for providing quality, adaptability, effectivity, and creativity to many of the world’s most prestigious style brands. Top-tier travel and accent companies, in addition to distinguished worldwide style labels, are amongst their remarkable brands. Ezihom is probably one of the girls purses producers in China that makes a speciality of customized clothing baggage, backpacks, purses, wine sacks, drawstrings, toiletry pouches, and more.

Hoang Ha Textile Garment is an ISO-certified manufacturing facility producing various fashion products. Hoang Ha Textile has over 20 years of expertise exporting to worldwide destinations. Their major specialty is backpacks and beauty bags. Vina Packing Films is Vietnam’s premier buying bag manufacturer and one of many world’s largest suppliers. If you want to manufacture buying baggage, they’re the go-to alternative. They’ve collaborated with the world’s largest manufacturers, such as IKEA and Walmart.

To select made in USA tote bags, observe the seven steps under. To order made in USA tote bags, observe the eight steps beneath. Enhance worker engagement with custom branded products for distant employees.

Our mission is to hire women who’ve numerous limitations to employment to make our custom leather-based and fabric baggage. They are adopted into our Better Life household and given an opportunity to reach life, family, and friendship. We actually imagine we’ve created a unique business that brings collectively your design efforts with tangible wants in our group of Detroit, Michigan. Your bag will come with the name of the woman who made your bag – bringing the non-public connection straight to your mailbox. American made of vegan leather, Mohop offers crossbody baggage, totes, wallet baggage aaapurse, and wristlets, as properly as sneakers, pet collars, jewellery, and more. Carryall purses, clutches, totes, crossbody bags, and small items designed in Indiana and made in Illinois.

Women’s Purses & Handbags Made Within The Usa The Great American Made Brands & Merchandise Listing Here are the top 5 handmade bag manufacturers to check out. The factory supplies high quality management, product design, and personal labeling services. The company provides personal labeling, in-house design 187factory.edu.kg, and quality control. They even have computerized stitching…

Leave a Reply

Your email address will not be published. Required fields are marked *