Cache in Services

Overview - cache in services

  • We use cached promises in services to store and retrieve data 
  • Avoid the repeated execution of asynchronous (and usually expensive) calls 
  • Better performance 
  • Based on a technique called memoization​ 

memoization

memoisation is an optimization technique used primarily to speed up computer programs by storing the results of expensive function calls and returning the cached result when the same inputs occur again

Example - SeoSettingsService

✌🏿

peace ;)

Cache in Service

By danielagreen

Cache in Service

  • 426