Skip Menu |

This queue is for tickets about the Dancer-Plugin-Cache CPAN distribution.

Report information
The Basics
Id: 66714
Status: resolved
Priority: 0/
Queue: Dancer-Plugin-Cache

People
Owner: Nobody in particular
Requestors: davidp [...] preshweb.co.uk
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: cache_get / cache_set keywords?
Do you think it would be worth adding simple cache_set($key, $value) and cache_get($key) keywords, for simplicity of use? Or, if not, at least illustrating the use of cache->get() and cache->set() to call CHI's get/set methods directly in the synopsis? This would seem to make sense for people who want to skim the docs and just see "Ah, that's how I'd store something in the cache and pull it back out later, that's easy".
Subject: Re: [rt.cpan.org #66714] cache_get / cache_set keywords?
Date: Sat, 19 Mar 2011 12:53:15 -0400
To: bug-Dancer-Plugin-Cache [...] rt.cpan.org
From: Yanick Champoux <yanick [...] babyl.dyndns.org>
On 11-03-18 11:42 AM, David Precious via RT wrote: Show quoted text
> Do you think it would be worth adding simple cache_set($key, $value) and > cache_get($key) keywords, for simplicity of use? > > Or, if not, at least illustrating the use of cache->get() and > cache->set() to call CHI's get/set methods directly in the synopsis? > > This would seem to make sense for people who want to skim the docs and > just see "Ah, that's how I'd store something in the cache and pull it > back out later, that's easy".
A very valid argument. I was toying with the idea to have those functions (they were already present in Dancer::Plugin::Memcached, which is the inspiration for this one) and, although it didn't make it for version 0.1.0, I don't see why they couldn't be added now. Gimme a few hours, and magic should happen. :-) Joy, `/anick
Just seen 0.2.1 out with these features - thanks!
Subject: Re: [rt.cpan.org #66714] cache_get / cache_set keywords?
Date: Mon, 21 Mar 2011 21:29:06 -0400
To: bug-Dancer-Plugin-Cache [...] rt.cpan.org
From: Yanick Champoux <yanick [...] babyl.dyndns.org>
On 11-03-21 11:11 AM, David Precious via RT wrote: Show quoted text
> Just seen 0.2.1 out with these features - thanks!
You're quite welcome. Enjoy! :-) `/anick