{"version":"1.0","type":"rich","title":"Gist 3319334","description":"This example demonstrates a simple caching mechanism for a Yii application, showing how a value is stored and retrieved. It first checks if the cache contains the key \"Ali\"; if found, it outputs the cached data. Otherwise, it sets the value \"Ali Raza\" with a 400-second expiration time. The code uses Yii’s `cache` component with `get` and `set` methods, relying on the framework’s built-in caching API to manage the data lifecycle. No visualization is performed; the code focuses purely on backend caching logic.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-3319334?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}