Spring Cache Module PowerPoint PPT Presentation

presentation player overlay
1 / 12
About This Presentation
Transcript and Presenter's Notes

Title: Spring Cache Module


1
Spring Cache Module
  • Fondy Wang
  • 12/7/07

2
Poor Cache Usage Example
3
Shortages
  • Code is harder to understand and the core
    functionality is a lot harder to see.
  • Code is harder to maintain.
  • Code is harder to test.
  • Code is harder to reuse

4
Caching method work process
  • Select which methodes and data should be cached.
  • Generated cache key.

5
Cache-flushing method work Process
6
Cache is Aspect
  • AOP
  • OOP

7
Spring Cache Module
  • Provides a consistent programming model across
    different caching APIs such as EHCache, JBoss
    Cache, Java Caching System (JCS) and OSCache.
  • Provides a unified, simpler, easier to use, API
    for programmatic use of caching services than
    most of these previously mentioned APIs.

8
Spring Cache Module
  • Supports different strategies for declarative
    caching services.
  • The Caching Module may be easily extended to
    support additional cache providers.

9
Merits of Declarative caching
  • Declarative caching encapsulates how caching is
    performed and eliminates any dependencies on the
    cache implementation from our Java code.
  • Cleaner separation of responsibilities.
  • Higher modularization.
  • Late binding of design decisions.

10
Declarative caching
11
Declarative caching
12
Configuring Declarative Caching Services
  • CacheProxyFactoryBean.
Write a Comment
User Comments (0)
About PowerShow.com