From 8ee44a36f0fa9de44adea2f88f54acb16eecdfc4 Mon Sep 17 00:00:00 2001 From: James South Date: Fri, 13 Dec 2013 17:32:25 +0000 Subject: [PATCH] Removing SQLite Cache is now purely file based. Very fast! Former-commit-id: 6880348d89c725fa1e7a20223fe10eb5fdb72f9d --- src/.nuget/NuGet.Config | 6 + src/.nuget/NuGet.exe.REMOVED.git-id | 1 + src/.nuget/NuGet.targets | 136 +++++ .../NET4/ImageProcessor.Web.csproj | 6 +- .../NET45/Caching/CacheIndexer.cs | 123 ++--- .../NET45/Caching/CachedImage.cs | 29 +- .../NET45/Caching/DiskCache.cs | 57 +- .../NET45/Caching/SQLContext.cs | 150 ------ .../NET45/Helpers/TaskHelpers.cs | 11 +- .../HttpModules/ImageProcessingModule.cs | 4 +- .../NET45/ImageProcessor.Web_NET45.csproj | 15 +- .../NET45/SQLite.cs.REMOVED.git-id | 1 - src/ImageProcessor.Web/NET45/SQLiteAsync.cs | 486 ------------------ src/ImageProcessor.Web/NET45/packages.config | 5 - src/ImageProcessor.sln | 7 + .../Test_Website_NET45.csproj | 16 +- .../NET45/Test_Website_NET45/packages.config | 4 +- src/packages/repositories.config | 1 - 18 files changed, 230 insertions(+), 828 deletions(-) create mode 100644 src/.nuget/NuGet.Config create mode 100644 src/.nuget/NuGet.exe.REMOVED.git-id create mode 100644 src/.nuget/NuGet.targets delete mode 100644 src/ImageProcessor.Web/NET45/Caching/SQLContext.cs delete mode 100644 src/ImageProcessor.Web/NET45/SQLite.cs.REMOVED.git-id delete mode 100644 src/ImageProcessor.Web/NET45/SQLiteAsync.cs delete mode 100644 src/ImageProcessor.Web/NET45/packages.config diff --git a/src/.nuget/NuGet.Config b/src/.nuget/NuGet.Config new file mode 100644 index 000000000..67f8ea046 --- /dev/null +++ b/src/.nuget/NuGet.Config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/.nuget/NuGet.exe.REMOVED.git-id b/src/.nuget/NuGet.exe.REMOVED.git-id new file mode 100644 index 000000000..df68ce126 --- /dev/null +++ b/src/.nuget/NuGet.exe.REMOVED.git-id @@ -0,0 +1 @@ +8f613402956f9802681f150b1cb51f8400eb628e \ No newline at end of file diff --git a/src/.nuget/NuGet.targets b/src/.nuget/NuGet.targets new file mode 100644 index 000000000..83fe90601 --- /dev/null +++ b/src/.nuget/NuGet.targets @@ -0,0 +1,136 @@ + + + + $(MSBuildProjectDirectory)\..\ + + + false + + + false + + + true + + + false + + + + + + + + + + + $([System.IO.Path]::Combine($(SolutionDir), ".nuget")) + $([System.IO.Path]::Combine($(ProjectDir), "packages.config")) + + + + + $(SolutionDir).nuget + packages.config + + + + + $(NuGetToolsPath)\NuGet.exe + @(PackageSource) + + "$(NuGetExePath)" + mono --runtime=v4.0.30319 $(NuGetExePath) + + $(TargetDir.Trim('\\')) + + -RequireConsent + -NonInteractive + + "$(SolutionDir) " + "$(SolutionDir)" + + + $(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir $(PaddedSolutionDir) + $(NuGetCommand) pack "$(ProjectPath)" -Properties "Configuration=$(Configuration);Platform=$(Platform)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols + + + + RestorePackages; + $(BuildDependsOn); + + + + + $(BuildDependsOn); + BuildPackage; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/ImageProcessor.Web/NET4/ImageProcessor.Web.csproj b/src/ImageProcessor.Web/NET4/ImageProcessor.Web.csproj index 104e5c9f1..ca6ff7b4a 100644 --- a/src/ImageProcessor.Web/NET4/ImageProcessor.Web.csproj +++ b/src/ImageProcessor.Web/NET4/ImageProcessor.Web.csproj @@ -12,6 +12,8 @@ ImageProcessor.Web v4.0 512 + ..\..\ + true true @@ -82,7 +84,6 @@ MemCache.cs - @@ -95,8 +96,6 @@ Preset.cs - - @@ -118,6 +117,7 @@ xcopy /y "$(TargetDir)$(TargetName).pdb" "$(SolutionDir)\TestWebsites\NET4\bin" +