Implemented filesystem cache, one and only (see #1415)

I also think that tout have a consistent API, we will need a "memory
cache", even if it doesn't do anything. The getCache method should just
return a CacheInterface object, not something that changes according to the
Cache's nature.
Le 7 juil. 2014 12:55, "Andrew Tch" <notifications@github.com> a écrit :

> In lib/Twig/Cache/MemoryCache.php:
>
> > @@ -0,0 +1,75 @@
> > +<?php
> > +
> > +/*
> > + * This file is part of Twig.
> > + *
> > + * (c) 2014 Fabien Potencier
> > + *
> > + * For the full copyright and license information, please view the LICENSE
> > + * file that was distributed with this source code.
> > + */
> > +
> > +/**
> > + * Class Twig_Cache_MemoryCache - use this to disable caching
>
> @fabpot <https://github.com/fabpot> , so I should remove MemoryCache at
> all (it was proposed by commenters above, by @sstok
> <https://github.com/sstok> mostly)?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/fabpot/Twig/pull/1421/files#r14590318>.
>