# Class FakeRedisService

Namespace
  adas_core.Test.Services

Assembly
  adas-core.Test.dll

Represents a fake or test double implementation of RedisService that also implements ICacheService, typically used to simulate Redis caching behavior in testing scenarios.

    public class FakeRedisService : RedisService, ICacheService

Inheritance
  object
  RedisService
  FakeRedisService

Implements
  ICacheService

Inherited Members
  RedisService.Database
  RedisService.GetOrSetObjectAsync<T>(string, Func<Task<T>>, TimeSpan?, CancellationToken)
  RedisService.GetOrSetValueAsync(string, Func<Task<string>>, TimeSpan?)
  RedisService.GetOrSetObjectAsync<T>(GroupedField, ObjectId, Func<Task<T>>, TimeSpan?, CancellationToken)
  RedisService.SetValue(string, string)
  RedisService.GetValue(string)
  RedisService.GetObjectAsync<T>(string, bool)
  RedisService.SetObjectAsync<T>(string, T, bool)
  RedisService.SetObjectAsync<T>(string, T, TimeSpan?, bool)
  RedisService.DeleteObjectAsync(string)
  RedisService.DeleteByPatternAsync(string)
  RedisService.CleanCache()
  RedisService.GetObjectAsync<T>(string, TimeSpan?, bool)
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Remarks

This class combines the inheritance of RedisService with the contract of ICacheService, allowing it to stand in for a real Redis-backed cache during unit tests or development.

## Constructors

### FakeRedisService()

    public FakeRedisService()

## Properties

### LastKey

    public string? LastKey { get; }

#### Property Value

string

### WasCalled

    public bool WasCalled { get; }

#### Property Value

bool