Skip to main content

Cache İstatistikleri

Cache istatistiklerini ve bilgilerini getirir.

Endpoint

GET /api/v1/cache

Authentication

Bu endpoint authentication gerektirir.

Header: Authorization: Bearer \{token\}

Permission

  • cache.view - Cache görüntüleme

Request

Headers

HeaderDeğerZorunlu
AuthorizationBearer \{token\}Evet

Response

Success Response (200 OK)

{
"driver": "database",
"stores": ["array", "database", "file"],
"database": {
"table": "cache",
"total_keys": 150,
"expired_keys": 10
},
"patterns": {
"exchange_rate": {
"description": "Para birimi dönüştürme oranları",
"pattern": "exchange_rate_*",
"example": "exchange_rate_USD_TRY_tcmb"
},
"translation": {
"description": "Çeviri cache'leri",
"pattern": "translation:*",
"example": "translation:tr:pages.home"
},
"translation_group": {
"description": "Çeviri grup cache'leri",
"pattern": "translation_group:*",
"example": "translation_group:tr:menu"
},
"translations": {
"description": "Tüm çeviri cache'leri",
"pattern": "translations:*",
"example": "translations:tr"
}
}
}

Code Examples

cURL

curl -X GET https://api.example.com/api/v1/cache \
-H "Authorization: Bearer \{token\}"

Notes

  • Cache driver bilgisi ve mevcut store'lar döner
  • Database driver kullanılıyorsa cache tablosu istatistikleri döner
  • Sistemde kullanılan cache pattern'leri ve örnekleri döner