Skip to main content
Glama
CacheException.php711 B
<?php declare(strict_types=1); namespace GoldenPathDigital\LaravelAscend\Exceptions; use RuntimeException; class CacheException extends RuntimeException { public static function invalidKey(string $key): self { return new self(sprintf( 'Invalid cache key "%s". Keys must contain only alphanumeric characters, underscores, hyphens, and dots.', $key )); } public static function valueTooLarge(string $key, int $size, int $maxSize): self { return new self(sprintf( 'Cache value for key "%s" is too large (%d bytes). Maximum allowed size is %d bytes.', $key, $size, $maxSize )); } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aarongrtech/laravel-ascend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server