Hi Matthieu,

I think you can use the CacheProvider abstract class to have acces to
deleteAll() and flushAll() methods. All doctrine cache implementations have
this it in class hierarchy.
Probably they created the interface without these methods and they decided
not to add them because the methods might not be available on all
implementations at that time.
It's good to keep the interface shorter anyway and probably 2 more
interfaces should exist.

flushAll deletes all data on the server
deleteAll is coupled with setNamespace and deletes all data related to the
namespace.

Regards,
Alex


On Sun, Nov 30, 2014 at 11:39 PM, Matthieu Napoli <[email protected]>
wrote:

> Hi all!
>
> I'm considering using doctrine/cache, but the Cache interface is missing a
> `deleteAll()` (or similar) method to clear the whole cache. And
> surprisingly, the ORM documentation mentions such method:
> http://doctrine-orm.readthedocs.org/en/latest/reference/caching.html#all
>
> I've had a look in doctrine/doctrine2 but couldn't find a duplicate
> implementation of cache adapters.
>
> So: how does the ORM clears the cache and how can I do it too?
>
> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to