// Copyright Epic Games, Inc. All Rights Reserved.
using StackExchange.Redis;
namespace EpicGames.Redis
{
///
/// Extension methods for Redis
///
public static class RedisExtensions
{
///
/// Convert a RedisValue to a RedisKey
///
///
///
public static RedisKey AsKey(this RedisValue value)
{
return (byte[])value!;
}
///
/// Convert a RedisKey to a RedisValue
///
///
///
public static RedisValue AsValue(this RedisKey key)
{
return (byte[])key!;
}
}
}