[postmodern-devel] [patch] export postmodern:dao-keys

Marijn Haverbeke marijnh at gmail.com
Tue Nov 25 09:11:45 UTC 2008


Looks good. And you even documented your changes! See people, that's
how it's done ;). Applied.


2008/11/25 Maciej Pasternacki <maciej at pasternacki.net>:
> 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/
>
> _______________________________________________
> postmodern-devel mailing list
> postmodern-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/postmodern-devel
>
>




More information about the postmodern-devel mailing list