mirror of
https://github.com/sphildreth/roadie
synced 2024-11-23 12:43:13 +00:00
27 lines
560 B
C#
27 lines
560 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Roadie.Library.Data
|
|
{
|
|
public partial class Collection
|
|
{
|
|
public static string CacheRegionUrn(Guid Id)
|
|
{
|
|
return string.Format("urn:collection:{0}", Id);
|
|
}
|
|
|
|
public static string CacheUrn(Guid Id)
|
|
{
|
|
return $"urn:collection_by_id:{ Id }";
|
|
}
|
|
|
|
public string CacheKey
|
|
{
|
|
get
|
|
{
|
|
return Collection.CacheUrn(this.RoadieId);
|
|
}
|
|
}
|
|
}
|
|
}
|