1 / 15

Gostei! Cache Techniques

Gostei! Cache Techniques. http://www.gostei.com. Gostei Interface. Simple Cache. Local Cache or Remote Cache No invalidation needed Usually good for lookup table Simple algorithm. Simple Cache. RefList. Remote Cache Invalidation required for the items Not that simple Algorithm:

casta
Download Presentation

Gostei! Cache Techniques

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Gostei! Cache Techniques http://www.gostei.com

  2. Gostei Interface

  3. Simple Cache • Local Cache or Remote Cache • No invalidation needed • Usually good for lookup table • Simple algorithm

  4. Simple Cache

  5. RefList • Remote Cache • Invalidation required for the items • Not that simple Algorithm: • Abril.Common.Cache.RefList.*

  6. RefList

  7. Abril.Common.Cache.RefList LOCAL CACHE REMOTE CACHE 1 5 9 13 ------ ------ ------ ------ ------ ------ ------ ------ ------ DATABASE 2 6 10 14 3 7 11 15 4 8 12 16 RefList Items

  8. Abril.Common.Cache.RefList ------ ------ ------ LOCAL CACHE ------ ------ ------ REMOTE CACHE 1 5 9 13 ------ ------ ------ ------ ------ ------ ------ ------ ------ DATABASE 2 6 10 14 3 7 11 15 4 8 12 16 RefList Items

  9. Abril.Common.Cache.RefList ------ ------ ------ LOCAL CACHE 6 ------ ------ ------ REMOTE CACHE 6 1 5 9 13 ------ ------ ------ ------ ------ ------ ------ ------ ------ DATABASE 2 6 10 14 3 7 11 15 4 8 12 16 RefList Items

  10. Abril.Common.Cache.RefList ------ ------ ------ LOCAL CACHE 6 3 ------ ------ ------ REMOTE CACHE 6 3 1 5 9 13 ------ ------ ------ ------ ------ ------ ------ ------ ------ DATABASE 2 6 10 14 3 7 11 15 4 8 12 16 RefList Items

  11. Abril.Common.Cache.RefList ------ ------ ------ LOCAL CACHE 6 3 10 11 15 ------ ------ ------ REMOTE CACHE 6 10 3 11 15 1 5 9 13 ------ ------ ------ ------ ------ ------ ------ ------ ------ DATABASE 2 6 10 14 3 7 11 15 4 8 12 16 RefList Items

  12. Abril.Common.Cache.RefList ------ ------ ------ LOCAL CACHE 6 3 10 11 15 ------ ------ ------ REMOTE CACHE 6 10 3 11 15 1 5 9 13 ------ ------ ------ ------ ------ ------ ------ ------ ------ DATABASE 2 6 10 14 3 7 11 15 4 8 12 16 RefList Items

  13. Abril.Common.Cache.RefList ------ ------ ------ LOCAL CACHE 3 11 ------ ------ ------ REMOTE CACHE 10 3 11 15 1 5 9 13 ------ ------ ------ ------ ------ ------ ------ ------ ------ DATABASE 2 6 10 14 3 7 11 15 4 8 12 16 RefList Items

  14. Abril.Common.Cache.RefList ------ ------ ------ LOCAL CACHE 6 3 11 ------ ------ ------ REMOTE CACHE 6 10 3 11 15 1 5 9 13 ------ ------ ------ ------ ------ ------ ------ ------ ------ DATABASE 2 6 10 14 3 7 11 15 4 8 12 16 RefList Items

  15. Tks! :D David Lojudice Sobrinho dsobrinho@abril.com.br http://dalssoft.com

More Related