mirror of
https://github.com/sphildreth/roadie
synced 2025-02-16 21:18:26 +00:00
40 lines
864 B
C#
40 lines
864 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Roadie.Library.Data
|
|
{
|
|
public partial class Playlist
|
|
{
|
|
public static string CacheRegionUrn(Guid Id)
|
|
{
|
|
return string.Format("urn:playlist:{0}", Id);
|
|
}
|
|
|
|
public static string CacheUrn(Guid Id)
|
|
{
|
|
return $"urn:playlist_by_id:{ Id }";
|
|
}
|
|
|
|
public string CacheKey
|
|
{
|
|
get
|
|
{
|
|
return Playlist.CacheUrn(this.RoadieId);
|
|
}
|
|
}
|
|
|
|
public string CacheRegion
|
|
{
|
|
get
|
|
{
|
|
return Playlist.CacheRegionUrn(this.RoadieId);
|
|
}
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"Id [{this.Id}], Name [{this.Name}], RoadieId [{ this.RoadieId}]";
|
|
}
|
|
}
|
|
}
|