|
Posted by Javier M Mora (jamarier) on February 15, 2007, 1:58 pm
Please log in for more thread options
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
danielmcbrearty@gmail.com escribió:
On 14 Feb 2007 14:52:04 -0800, danielmcbrearty@gmail.com wrote:
> I like and use MJ Dominus' excellent Memoize module to cache some
> stuff in my app that hits a db rather hard. It's very simple :
> [...]
> Now what I'd like is, in another function, to manually invalidate (or
> delete) certain cached values at runtime (most likely because I
> changed the value in the db).
>
> How can I do this?
If you read Memoize doc, you can see HASH option. You can set/get hash
where the memoize info is. You only need clear key of data you want
invalidate.
javier m mora.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFF1KzYpRHCj3lPPYMRAvi9AJ9TcgfxzUb9UaQ7GU5ci896BQGk6gCgmiMD
PCZI9XNJyG6f0fbZehSJCXM=
=cV4d
-----END PGP SIGNATURE-----
|