cache with php
| From: | Sunil Samuel | Date: | Wed, 21 May 2003 21:03:27 +0000 |
| Subject: | cache with php | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-1472@lists.php.net to get a copy of this message | ||
Hi,
I've used the AOLServer for a while and liked its nsv_set commands where data can be cached. Basically, you have a name of a table, field, and content for it, and that content lives as long as the server does.
i.e.,
I can set the content using the following command:
nsv_set myTable field1 "This is the cached data that I will be using ..."
then I can get that field anytime I want to by doing the following:
set myVar [nsv_get myTable field1]
here, the variable myVar will have the content "This is the cached data that I will be using ..."
I'm pretty sure there is a way to do this in php, just not sure how.
Any help will be appreciated.
thanks,
sunil.