Giter Site home page Giter Site logo

cachebundle's People

Contributors

dourouc05 avatar louterrailloune avatar thomaroger avatar tonypiper avatar winzou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cachebundle's Issues

Memcache steup

Hi,

how to setup memcache driver?
Especially how to set server and port?

Unfortunatly I must append some code - addServer - to __construct like this:
public function __construct(array $options = array())
{
// Memcache instance is not required, we can create one
if (!isset($options['memcache']) || !$options['memcache'] instanceof Memcache) {
$options['memcache'] = new Memcache;
$options['memcache']->addServer('localhost', 11211);
}

    $this->setMemcache($options['memcache']);
}

Is there any better way?

Enhancement : create subfolders for lifetimefile

Hi !

This bundle is great for people who want to handle cache themselves.

I'm using lifetimefile to cache some data. But, I need to cache something like 50 000 static web pages. And I don't want this to be stored in one folder.
So I was thinking about a way to handle subfolders.

Something like :

$cache->save('/my/subfolder/cacheContent', $content);

Could make the deal.

I tried this but it doesn't work because of non created folders. So it will need some modifications in LifetimeFileCache.php

Are you open to this ? So I can make a pull request sometime.

Support for lifetime with FileCache backend?

Hello,

I need a liteftime support for my cache, but I see it is not currently supported (the information is lost when given to FileCache::save()).

Would it be possible to handle it? Or is it better for me to do a new backend and pull it to you? (If it not done yet when you read this.)

Default value for parameters

In DependencyInjection\Configuration we define the default values for all the parameters. But it seems that it's not taken into account when parsing the configuration ($config in winzouCacheExcention is empty when winzou_cache is not defined in the config.yml).

How to make these default values work?

Abstract service

The service winzou_cache.cache (cf services.yml) is supposed to return a xxxCache, but we don't know which one in advance. So we can't define the 'class' attribute for this service, and the use of 'abstract: true' is not clear at all.

How to handle this ?

For the moment, we can only instanciate FileCache instance, which is quite poor.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.