%0 Conference Proceedings %T A Trigger-Based Middleware Cache for ORMs %+ Computer Science and Artificial Intelligence Laboratory [Cambridge] (CSAIL) %A Gupta, Priya %A Zeldovich, Nickolai %A Madden, Samuel %Z Part 6: Replication and Caching %< avec comité de lecture %( Lecture Notes in Computer Science %B 12th International Middleware Conference (MIDDLEWARE) %C Lisbon, Portugal %Y Fabio Kon %Y Anne-Marie Kermarrec %I Springer %3 Middleware 2011 %V LNCS-7049 %P 329-349 %8 2011-12-12 %D 2011 %R 10.1007/978-3-642-25821-3_17 %Z Computer Science [cs] %Z Computer Science [cs]/Networking and Internet Architecture [cs.NI]Conference papers %X Caching is an important technique in scaling storage for high-traffic web applications. Usually, building caching mechanisms involves significant effort from the application developer to maintain and invalidate data in the cache. In this work we present CacheGenie, a caching middleware which makes it easy for web application developers to use caching mechanisms in their applications. CacheGenie provides high-level caching abstractions for common query patterns in web applications based on Object-RelationalMapping (ORM) frameworks. Using these abstractions, the developer does not have to worry about managing the cache (e.g., insertion and deletion) or maintaining consistency (e.g., invalidation or updates) when writing application code.We design and implement CacheGenie in the popular Django web application framework, with PostgreSQL as the database backend and memcached as the caching layer. To automatically invalidate or update cached data, we use triggers inside the database. CacheGenie requires no modifications to PostgreSQL or memcached. To evaluate our prototype, we port several Pinax web applications to use our caching abstractions. Our results show that it takes little effort for application developers to use CacheGenie, and that CacheGenie improves throughput by 2-2.5× for read-mostly workloads in Pinax. %G English %Z TC 6 %Z WG 6.1 %2 https://inria.hal.science/hal-01597769/document %2 https://inria.hal.science/hal-01597769/file/978-3-642-25821-3_17_Chapter.pdf %L hal-01597769 %U https://inria.hal.science/hal-01597769 %~ IFIP-LNCS %~ IFIP %~ IFIP-TC %~ IFIP-WG %~ IFIP-TC6 %~ IFIP-WG6-1 %~ IFIP-MIDDLEWARE %~ IFIP-LNCS-7049