Initial skeleton work of periodic on disk caching

This commit is contained in:
2024-01-08 00:13:08 -08:00
parent ade2861395
commit 6e9d58c6e3
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using System.ComponentModel.DataAnnotations;
using AS1024.GeoFeed.Models;
using Microsoft.EntityFrameworkCore;
public class GeoFeedCacheService : IHostedService
{
public Task StartAsync(CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
public Task StopAsync(CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
}
public class GeoFeedCacheEntry : IPGeoFeed {
[Key]
public int Id { get; set; }
}
public class GeoFeedCacheDbContext : DbContext {
public virtual DbSet<GeoFeedCacheEntry> GeoFeedCacheEntries {get;set;}
}