validateValueSize method
Validates cache value size.
Implementation
void validateValueSize(dynamic value, {int maxSize = 10 * 1024 * 1024}) {
// For simple validation, we can check string length or basic object size
// More sophisticated size checking could be implemented if needed
if (value is String && value.length > maxSize) {
throw CacheException(
'Cache value is too large (maximum $maxSize characters for strings)',
);
}
}