Skip to content

build key with date #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added DevTrends.MvcDonutCaching/.DS_Store
Binary file not shown.
13 changes: 1 addition & 12 deletions DevTrends.MvcDonutCaching/KeyBuilder.cs
Original file line number Diff line number Diff line change
@@ -6,19 +6,8 @@ namespace DevTrends.MvcDonutCaching
{
public class KeyBuilder : IKeyBuilder
{
private string _cacheKeyPrefix = "_d0nutc@che.";

public string CacheKeyPrefix
{
get
{
return _cacheKeyPrefix;
}
set
{
_cacheKeyPrefix = value;
}
}
public string CacheKeyPrefix = "_d0nutc@che." + System.DateTime.Now.ToString("yyyyMMdd");

public string BuildKey(string controllerName)
{
6 changes: 5 additions & 1 deletion DevTrends.MvcDonutCaching/MvcDonutCaching.csproj
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -31,8 +32,10 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release.Public|AnyCPU' ">
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<OutputPath>..\nuget\lib\net40\</OutputPath>
<DefineConstants>TRACE;RELEASE_PUBLIC</DefineConstants>
<Optimize>true</Optimize>
@@ -42,6 +45,7 @@
<DocumentationFile>..\nuget\lib\net40\DevTrends.MvcDonutCaching.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'CI|AnyCPU'">
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\CI\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
@@ -113,7 +117,7 @@
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>Ce projet fait référence à des packages NuGet qui sont manquants sur cet ordinateur. Activez l'option de restauration des packages NuGet pour les télécharger. Pour plus d'informations, consultez http://go.microsoft.com/fwlink/?LinkID=322105. Le fichier manquant est le suivant : {0}.</ErrorText>
<ErrorText>Este projeto faz referência a pacotes NuGet que estão faltando neste computador. Ative a opção de restauração de pacotes NuGet para baixá-los. Para mais informações, consulte http://go.microsoft.com/fwlink/?LinkID=322105. O arquivo ausente é o seguinte. : {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
</Target>
Binary file added nuget/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion nuget/MvcDonutCaching.nuspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MvcDonutCaching</id>
<id>MvcDonutCaching-2</id>
<version>1.3.1-beta1</version>
<authors>MvcDonutCaching contributors</authors>
<owners>Clément Bourgeois</owners>
Binary file added nuget/content/.DS_Store
Binary file not shown.