Initial commit
This commit is contained in:
37
skills/skill-adapter/assets/cache_invalidation_template.json
Normal file
37
skills/skill-adapter/assets/cache_invalidation_template.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"_comment": "Template for cache invalidation requests. Use this to build your request to invalidate cached data.",
|
||||
"request_id": "unique_request_id_123",
|
||||
"_comment": "A unique identifier for this invalidation request. Helps with tracking and auditing.",
|
||||
"cache_type": "redis",
|
||||
"_comment": "The type of cache to invalidate. Options: 'redis', 'cdn', 'http'.",
|
||||
"target": "key",
|
||||
"_comment": "Specifies what is being targeted for invalidation. Options: 'key', 'tag', 'all'.",
|
||||
"key": "user:profile:12345",
|
||||
"_comment": "The specific cache key to invalidate (if target is 'key').",
|
||||
"tag": "user_profile",
|
||||
"_comment": "The tag to invalidate (if target is 'tag'). All entries with this tag will be invalidated.",
|
||||
"cdn_provider": "cloudflare",
|
||||
"_comment": "If cache_type is 'cdn', specify the CDN provider. Options: 'cloudflare', 'akamai', 'fastly'.",
|
||||
"cloudflare_zone_id": "your_cloudflare_zone_id",
|
||||
"_comment": "If cache_type is 'cdn' and cdn_provider is 'cloudflare', specify the Cloudflare zone ID.",
|
||||
"akamai_client_token": "your_akamai_client_token",
|
||||
"_comment": "If cache_type is 'cdn' and cdn_provider is 'akamai', specify the Akamai Client Token.",
|
||||
"akamai_client_secret": "your_akamai_client_secret",
|
||||
"_comment": "If cache_type is 'cdn' and cdn_provider is 'akamai', specify the Akamai Client Secret.",
|
||||
"akamai_access_token": "your_akamai_access_token",
|
||||
"_comment": "If cache_type is 'cdn' and cdn_provider is 'akamai', specify the Akamai Access Token.",
|
||||
"fastly_service_id": "your_fastly_service_id",
|
||||
"_comment": "If cache_type is 'cdn' and cdn_provider is 'fastly', specify the Fastly Service ID.",
|
||||
"fastly_api_key": "your_fastly_api_key",
|
||||
"_comment": "If cache_type is 'cdn' and cdn_provider is 'fastly', specify the Fastly API Key.",
|
||||
"http_header": "Cache-Control",
|
||||
"_comment": "If cache_type is 'http', specify the HTTP header to modify. Typically 'Cache-Control'.",
|
||||
"http_header_value": "no-cache, no-store, must-revalidate",
|
||||
"_comment": "If cache_type is 'http', specify the new value for the HTTP header. Example: 'no-cache, no-store, must-revalidate'.",
|
||||
"invalidate_all": false,
|
||||
"_comment": "If true, invalidates all entries in the specified cache_type. Use with caution!",
|
||||
"timestamp": "2024-01-26T12:00:00Z",
|
||||
"_comment": "Timestamp of the invalidation request. Useful for auditing and debugging.",
|
||||
"user": "admin_user",
|
||||
"_comment": "User who initiated the invalidation request."
|
||||
}
|
||||
Reference in New Issue
Block a user