Files
UnrealEngineUWP/Engine/Source/Programs/Shared/EpicGames.Redis/RedisExtensions.cs
Ben Marsh cda1b66bba Reformat EpicGames.Core according to standard coding conventions.
#preflight 623cd2e84368f558e30b4a9e

[CL 19502309 by Ben Marsh in ue5-main branch]
2022-03-24 16:35:00 -04:00

33 lines
658 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;
}
}
}