Files
UnrealEngineUWP/Engine/Source/Programs/Shared/EpicGames.Redis/RedisExtensions.cs
Ben Marsh 60fb2115fb Horde: Upgrade all NuGet packages to latest.
#preflight 630cf402e1124837752f0cb3

[CL 21682720 by Ben Marsh in ue5-main branch]
2022-08-29 13:34:15 -04:00

33 lines
660 B
C#

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