mirror of
https://github.com/bitwarden/server.git
synced 2026-01-31 14:13:18 +08:00
* Enable Nullable In Unowned Repos * Update More Tests * Move to One If * Fix Collections * Format * Add Migrations * Move Pragma Annotation * Add Better Assert Message
16 lines
419 B
C#
16 lines
419 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
#nullable enable
|
|
|
|
namespace Bit.Infrastructure.EntityFramework.Models;
|
|
|
|
public class Cache
|
|
{
|
|
[StringLength(449)]
|
|
public required string Id { get; set; }
|
|
public byte[] Value { get; set; } = null!;
|
|
public DateTime ExpiresAtTime { get; set; }
|
|
public long? SlidingExpirationInSeconds { get; set; }
|
|
public DateTime? AbsoluteExpiration { get; set; }
|
|
}
|