Wednesday, September 10, 2008

Memcached User-Defined Functions for Java DB : Knut Anders Hatlen's Weblog

Wow, now this is cool. Some sample code that shows you how to turn Java DB into a memcached engine. Take a look at this snippet:

ij> create trigger insert_trigger after insert on my_table
referencing new as n
for each row
call memcached_set(, n.x);
0 rows inserted/updated/deleted

No comments: