├── heroku.yml
├── BasicRedisCacingExampleInDotNetCore
├── ClientApp
│ ├── .browserslistrc
│ ├── babel.config.js
│ ├── dist
│ │ ├── favicon.ico
│ │ ├── css
│ │ │ └── app.2549dc0b.css
│ │ ├── index.html
│ │ └── js
│ │ │ ├── app.cd4e1a8d.js
│ │ │ ├── app.cd4e1a8d.js.map
│ │ │ └── chunk-vendors.da8f982a.js
│ ├── public
│ │ ├── favicon.ico
│ │ └── index.html
│ ├── src
│ │ ├── assets
│ │ │ └── logo.png
│ │ ├── main.js
│ │ ├── App.vue
│ │ ├── components
│ │ │ ├── Panel.vue
│ │ │ ├── History.vue
│ │ │ ├── SearchInput.vue
│ │ │ ├── ResultItem.vue
│ │ │ └── Example.vue
│ │ └── storage.js
│ ├── .gitignore
│ ├── README.md
│ ├── .eslintrc.js
│ └── package.json
├── Pages
│ ├── _ViewImports.cshtml
│ ├── Error.cshtml
│ └── Error.cshtml.cs
├── appsettings.Development.json
├── appsettings.json
├── Models
│ ├── GitResponseModel.cs
│ └── ResponseModel.cs
├── Properties
│ └── launchSettings.json
├── BasicRedisCacingExampleInDotNetCore.csproj
├── Program.cs
├── Controllers
│ └── ReposController.cs
└── Startup.cs
├── docs
├── YTThumbnail.png
└── screenshot001.png
├── images
└── app_preview_image.png
├── app.json
├── Dockerfile
├── LICENSE
├── BasicRedisCacingExampleInDotNetCore.sln
├── marketplace.json
├── README.md
└── .gitignore
/heroku.yml:
--------------------------------------------------------------------------------
1 | build:
2 | docker:
3 | web: Dockerfile
4 |
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/ClientApp/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not dead
4 |
--------------------------------------------------------------------------------
/docs/YTThumbnail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redis-developer/basic-caching-demo-csharpdotnet/master/docs/YTThumbnail.png
--------------------------------------------------------------------------------
/docs/screenshot001.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redis-developer/basic-caching-demo-csharpdotnet/master/docs/screenshot001.png
--------------------------------------------------------------------------------
/images/app_preview_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redis-developer/basic-caching-demo-csharpdotnet/master/images/app_preview_image.png
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/ClientApp/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/ClientApp/dist/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redis-developer/basic-caching-demo-csharpdotnet/master/BasicRedisCacingExampleInDotNetCore/ClientApp/dist/favicon.ico
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/ClientApp/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redis-developer/basic-caching-demo-csharpdotnet/master/BasicRedisCacingExampleInDotNetCore/ClientApp/public/favicon.ico
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/ClientApp/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/redis-developer/basic-caching-demo-csharpdotnet/master/BasicRedisCacingExampleInDotNetCore/ClientApp/src/assets/logo.png
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/Pages/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using BasicRedisCacingExampleInDotNetCore
2 | @namespace BasicRedisCacingExampleInDotNetCore.Pages
3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4 |
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/ClientApp/src/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import App from './App.vue'
3 |
4 | Vue.config.productionTip = false
5 |
6 | new Vue({
7 | render: h => h(App),
8 | }).$mount('#app')
9 |
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | }
8 | },
9 | "AllowedHosts": "*"
10 | }
11 |
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/Models/GitResponseModel.cs:
--------------------------------------------------------------------------------
1 | using System.Text.Json.Serialization;
2 |
3 | namespace BasicRedisCacingExampleInDotNetCore.Models
4 | {
5 | public class GitResponseModel
6 | {
7 |
8 | [JsonPropertyName("public_repos")]
9 | public int PublicRepos { get; set; }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/ClientApp/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | /node_modules
3 |
4 | # local env files
5 | .env.local
6 | .env.*.local
7 |
8 | # Log files
9 | npm-debug.log*
10 | yarn-debug.log*
11 | yarn-error.log*
12 | pnpm-debug.log*
13 |
14 | # Editor directories and files
15 | .idea
16 | .vscode
17 | *.suo
18 | *.ntvs*
19 | *.njsproj
20 | *.sln
21 | *.sw?
22 |
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Basic Redis Caching Demo .Net Core 5",
3 | "stack": "container",
4 | "env": {
5 | "REDIS_ENDPOINT_URL": {
6 | "description": "Redis server host:port, ex: 127.0.0.1:6379",
7 | "required": true
8 | },
9 | "REDIS_PASSWORD": {
10 | "description": "Redis server password",
11 | "required": true
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/ClientApp/README.md:
--------------------------------------------------------------------------------
1 | # client
2 |
3 | ## Project setup
4 | ```
5 | yarn install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | yarn serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | yarn build
16 | ```
17 |
18 | ### Lints and fixes files
19 | ```
20 | yarn lint
21 | ```
22 |
23 | ### Customize configuration
24 | See [Configuration Reference](https://cli.vuejs.org/config/).
25 |
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/ClientApp/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | env: {
4 | node: true
5 | },
6 | 'extends': [
7 | 'plugin:vue/essential',
8 | 'eslint:recommended'
9 | ],
10 | parserOptions: {
11 | parser: 'babel-eslint'
12 | },
13 | rules: {
14 | 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
15 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/Models/ResponseModel.cs:
--------------------------------------------------------------------------------
1 | using System.Text.Json.Serialization;
2 |
3 | namespace BasicRedisCacingExampleInDotNetCore.Models
4 | {
5 | public class ResponseModel
6 | {
7 | [JsonPropertyName("username")]
8 | public string Username { get; set; }
9 |
10 | [JsonPropertyName("repos")]
11 | public string Repos { get; set; }
12 |
13 | [JsonPropertyName("cached")]
14 | public bool Cached { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/BasicRedisCacingExampleInDotNetCore/ClientApp/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 | Redis Caching Example
4 | History:
7 |
8 |
13 | Request ID: @Model.RequestId
14 |
19 | Swapping to the Development environment displays detailed information about the error that occurred. 20 |
21 |22 | The Development environment shouldn't be enabled for deployed applications. 23 | It can result in displaying sensitive information from exceptions to end users. 24 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 25 | and restarting the app. 26 |
27 | -------------------------------------------------------------------------------- /BasicRedisCacingExampleInDotNetCore/Pages/Error.cshtml.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc; 2 | using Microsoft.AspNetCore.Mvc.RazorPages; 3 | using Microsoft.Extensions.Logging; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Diagnostics; 7 | using System.Linq; 8 | using System.Threading.Tasks; 9 | 10 | namespace BasicRedisCacingExampleInDotNetCore.Pages 11 | { 12 | [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] 13 | public class ErrorModel : PageModel 14 | { 15 | private readonly ILogger
67 |
68 |
69 |
70 |
75 |
76 |
77 |
78 |