in reply to Cache::Cache questions
1) Can I use this module in order to store my hash between sessions
It might mostly work, but it's not at all advisable. Caches are there to speed up lookups that would otherwise take longer, but they are not intended to keep always all information. (It's not the primary goal to avoid data loss, as opposed to "real" storage solutions).
for sessions there's CGI::Session or Storable, depending on the abstraction level you want.
In the CPAN tutorial I found an example of usage. What are $name and $customer there.
$customer is a data structure to be cached, and $name is a name uniquely identifying that structure.
3) Can somebody who has a similar task give me an example of working usage.
Most CPAN modules come with test files which are also working examples. You can find them by clicking on the MANIFEST link on the distribution overview page, for Cache::Cache it's here.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Cache::Cache questions
by vit (Friar) on Jun 30, 2009 at 17:20 UTC | |
by moritz (Cardinal) on Jun 30, 2009 at 19:22 UTC | |
by vit (Friar) on Jun 30, 2009 at 19:48 UTC | |
by mravikiran (Initiate) on Jul 21, 2009 at 18:07 UTC |