Answers.Body: <p>It's still there, but you're working at the Yii2 layer: <a href="https://www.yiiframework.com/doc/guide/2.0/en/caching-data" rel="nofollow noreferrer">The Definitive Guide to Yii 2.0: Data Caching</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-11T05:18:02.080Z
Answers.LastActivityDate: 2019-11-11T05:18:02.080Z
Answers.UserDisplayName: andrew.welch
Body: <p><a href="https://docs.craftcms.com/api/v2/craft-cacheservice.html" rel="nofollow noreferrer">CacheService</a> is exactly what I need to cache a custom API endpoint in PHP, but I don't see it in Craft 3. What would be the correct way to do this in Craft 3?</p>
  
Tags: <cache>
Title: Is there a CacheService equivalent in Craft 3?
ThreadText: # Is there a CacheService equivalent in Craft 3?
  
  (Asked by: username_0 on 2019-11-11)
  
  [CacheService](https://docs.craftcms.com/api/v2/craft-cacheservice.html) is exactly what I need to cache a custom API endpoint in PHP, but I don't see it in Craft 3. What would be the correct way to do this in Craft 3?
  
  **Tags:** cache
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-11-11. Score: 2 | Accepted answer
  
  It's still there, but you're working at the Yii2 layer: [The Definitive Guide to Yii 2.0: Data Caching](https://www.yiiframework.com/doc/guide/2.0/en/caching-data)
  
  
  ---
  
  