[postmodern-devel] [patch] export postmodern:dao-keys
Maciej Pasternacki
maciej at pasternacki.net
Tue Nov 25 00:46:20 UTC 2008
Hello,
I just written a simple DAO cache for my app (for curious: http://paste.lisp.org/display/70998
- I wrap Hunchentoot request handler body with WITH-DAO-CACHE and it
caches DAO of given class and primary key to avoid repeated SELECTs
when serving a single request). For the caching to work well, I need
to figure out keys of a DAO, and this functionality is unexported.
Attached patch exports (and documents) DAO-KEYS, adds method for a
symbol (invoking DAO-KEYS on class named by a symbol), and for a DAO
instance (returning list of values that are instance's primary key).
Regards,
Maciej
--
Maciej Pasternacki -><- http://www.pasternacki.net/ -><- http://www.3ofcoins.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: daokeys.cset.gz
Type: application/x-gzip
Size: 8677 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/postmodern-devel/attachments/20081125/822b7705/attachment.bin>
More information about the postmodern-devel
mailing list