GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Text::Template::Simple::Cache(3) User Contributed Perl Documentation Text::Template::Simple::Cache(3)

Text::Template::Simple::Cache

version 0.91

   TODO

Cache manager for "Text::Template::Simple".

Text::Template::Simple::Cache - Cache manager

Constructor. Accepts a "Text::Template::Simple" object as the parameter.

Returns the type of the cache.

Resets the in-memory cache and deletes all cache files, if you are using a disk cache.

   $template->cache->dumper( $type, \%opt );

"TYPE" can either be "structure" or "ids". "dumper" accepts some arguments as a hash reference:

   $template->cache->dumper( $type, \%opt );
"varname"
Controls the name of the dumped structure.
no_deparse
If you set this to a true value, "deparsing" will be disabled

structure

Returns a string version of the dumped in-memory or disk-cache. Cache is dumped via Data::Dumper. "Deparse" option is enabled for in-memory cache.

Early versions of "Data::Dumper" don' t have a "Deparse" method, so you may need to upgrade your "Data::Dumper" or disable "deparsing" if you want to use this method.

ids

Returns a list including the names (ids) of the templates in the cache.

Gets/sets the cache id.

Returns the total cache (disk or memory) size in bytes. If memory cache is used, then you must have Devel::Size installed on your system to get the size of the data structure inside memory.

This method can be called with "data" or "id" named parameter. If you use the two together, "id" will be used:

   if ( $template->cache->has( id => 'e369853df766fa44e1ed0ff613f563bd' ) ) {
      print "ok!";
   }

or

   if ( $template->cache->has( data => q~Foo is <%=$bar%>~ ) ) {
      print "ok!";
   }

   TODO

   TODO

Burak Gursoy <burak@cpan.org>

This software is copyright (c) 2004 by Burak Gursoy.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2018-12-25 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.