cleanup method

  1. @override
Future<void> cleanup(
  1. Duration maxAge
)
override

Clean up expired sessions

Implementation

@override
Future<void> cleanup(Duration maxAge) async {
  if (!_isConnected) {
    throw StateError('Redis connection not available');
  }

  // Redis handles TTL automatically, but we can clean up expired keys
  // This is a no-op since Redis handles expiration automatically
  // In a real implementation, you might want to scan for expired keys
}