Deretardify the caching
This commit is contained in:
@@ -13,10 +13,9 @@ type Character struct {
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
// CacheEntry represents a cached API response
|
||||
type CacheEntry struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
URLHash string `gorm:"uniqueIndex"`
|
||||
Response string `gorm:"type:text"`
|
||||
Hash string `gorm:"uniqueIndex"`
|
||||
Data string `gorm:"type:text"`
|
||||
CachedAt time.Time `gorm:"index"`
|
||||
}
|
||||
Reference in New Issue
Block a user