Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/EasyCaching.CSRedis/DefaultCSRedisCachingProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,6 @@ public override TimeSpan BaseGetExpiration(string cacheKey)
/// <returns></returns>
public override ProviderInfo BaseGetProviderInfo() => _info;

public override object BaseGetDatabse() => _cache;
public override object BaseGetDatabase() => _cache;
}
}
4 changes: 2 additions & 2 deletions src/EasyCaching.Core/EasyCachingAbstractProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public abstract class EasyCachingAbstractProvider : IEasyCachingProvider
public CachingProviderType CachingProviderType => this.ProviderType;
public CacheStats CacheStats => this.ProviderStats;

public object Database => BaseGetDatabse();
public object Database => BaseGetDatabase();

protected EasyCachingAbstractProvider() { }

Expand All @@ -42,7 +42,7 @@ protected EasyCachingAbstractProvider(IDistributedLockFactory lockFactory, BaseP
_options = options;
}

public abstract object BaseGetDatabse();
public abstract object BaseGetDatabase();
public abstract bool BaseExists(string cacheKey);
public abstract Task<bool> BaseExistsAsync(string cacheKey, CancellationToken cancellationToken = default);
public abstract void BaseFlush();
Expand Down
2 changes: 1 addition & 1 deletion src/EasyCaching.Disk/DefaultDiskCachingProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,6 @@ private void DeleteDirectory(string path)

public override ProviderInfo BaseGetProviderInfo() => _info;

public override object BaseGetDatabse() => throw new Exception("Disk provider don't support this ");
public override object BaseGetDatabase() => throw new Exception("Disk provider don't support this ");
}
}
2 changes: 1 addition & 1 deletion src/EasyCaching.InMemory/DefaultInMemoryCachingProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,6 @@ public override TimeSpan BaseGetExpiration(string cacheKey)
/// <returns></returns>
public override ProviderInfo BaseGetProviderInfo() => _info;

public override object BaseGetDatabse() => _cache;
public override object BaseGetDatabase() => _cache;
}
}
2 changes: 1 addition & 1 deletion src/EasyCaching.LiteDB/DefaultLiteDBCachingProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,6 @@ public override TimeSpan BaseGetExpiration(string cacheKey)
/// <returns></returns>
public override ProviderInfo BaseGetProviderInfo() => _info;

public override object BaseGetDatabse() => _cache;
public override object BaseGetDatabase() => _cache;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public override ProviderInfo BaseGetProviderInfo()
return _info;
}

public override object BaseGetDatabse() => _memcachedClient;
public override object BaseGetDatabase() => _memcachedClient;

private void OnCacheHit(string cacheKey)
{
Expand Down
2 changes: 1 addition & 1 deletion src/EasyCaching.Redis/DefaultRedisCachingProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,6 @@ public override TimeSpan BaseGetExpiration(string cacheKey)
/// <returns></returns>
public override ProviderInfo BaseGetProviderInfo() => _info;

public override object BaseGetDatabse() => _cache;
public override object BaseGetDatabase() => _cache;
}
}
2 changes: 1 addition & 1 deletion src/EasyCaching.SQLite/DefaultSQLiteCachingProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,6 @@ public override TimeSpan BaseGetExpiration(string cacheKey)
/// <returns></returns>
public override ProviderInfo BaseGetProviderInfo() => _info;

public override object BaseGetDatabse() => _cache;
public override object BaseGetDatabase() => _cache;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public override Task<bool> BaseTrySetAsync<T>(string cacheKey, T cacheValue, Tim
return Task.FromResult(false);
}

public override object BaseGetDatabse()
public override object BaseGetDatabase()
{
return null;
}
Expand Down