├── quickstart
├── nodejs
│ ├── package.json
│ ├── redistest.js
│ └── README.md
├── aspnet-core
│ ├── ContosoTeamStats
│ │ ├── Views
│ │ │ ├── _ViewStart.cshtml
│ │ │ ├── _ViewImports.cshtml
│ │ │ ├── Home
│ │ │ │ ├── Privacy.cshtml
│ │ │ │ ├── Index.cshtml
│ │ │ │ └── RedisCache.cshtml
│ │ │ └── Shared
│ │ │ │ ├── _ValidationScriptsPartial.cshtml
│ │ │ │ ├── Error.cshtml
│ │ │ │ └── _Layout.cshtml
│ │ ├── wwwroot
│ │ │ ├── lib
│ │ │ │ └── bootstrap
│ │ │ │ │ └── scss
│ │ │ │ │ ├── helpers
│ │ │ │ │ ├── _clearfix.scss
│ │ │ │ │ ├── _text-truncation.scss
│ │ │ │ │ ├── _vr.scss
│ │ │ │ │ ├── _visually-hidden.scss
│ │ │ │ │ ├── _stretched-link.scss
│ │ │ │ │ ├── _stacks.scss
│ │ │ │ │ ├── _colored-links.scss
│ │ │ │ │ ├── _ratio.scss
│ │ │ │ │ └── _position.scss
│ │ │ │ │ ├── mixins
│ │ │ │ │ ├── _clearfix.scss
│ │ │ │ │ ├── _lists.scss
│ │ │ │ │ ├── _color-scheme.scss
│ │ │ │ │ ├── _text-truncate.scss
│ │ │ │ │ ├── _resize.scss
│ │ │ │ │ ├── _container.scss
│ │ │ │ │ ├── _alert.scss
│ │ │ │ │ ├── _backdrop.scss
│ │ │ │ │ ├── _image.scss
│ │ │ │ │ ├── _box-shadow.scss
│ │ │ │ │ ├── _reset-text.scss
│ │ │ │ │ ├── _list-group.scss
│ │ │ │ │ ├── _deprecate.scss
│ │ │ │ │ ├── _transition.scss
│ │ │ │ │ ├── _pagination.scss
│ │ │ │ │ ├── _table-variants.scss
│ │ │ │ │ ├── _visually-hidden.scss
│ │ │ │ │ ├── _caret.scss
│ │ │ │ │ ├── _gradients.scss
│ │ │ │ │ ├── _border-radius.scss
│ │ │ │ │ ├── _utilities.scss
│ │ │ │ │ └── _forms.scss
│ │ │ │ │ ├── forms
│ │ │ │ │ ├── _form-text.scss
│ │ │ │ │ ├── _validation.scss
│ │ │ │ │ ├── _labels.scss
│ │ │ │ │ ├── _floating-labels.scss
│ │ │ │ │ ├── _form-select.scss
│ │ │ │ │ ├── _form-range.scss
│ │ │ │ │ ├── _input-group.scss
│ │ │ │ │ └── _form-check.scss
│ │ │ │ │ ├── _forms.scss
│ │ │ │ │ ├── _helpers.scss
│ │ │ │ │ ├── bootstrap-utilities.scss
│ │ │ │ │ ├── bootstrap-reboot.scss
│ │ │ │ │ ├── _transitions.scss
│ │ │ │ │ ├── _badge.scss
│ │ │ │ │ ├── _grid.scss
│ │ │ │ │ ├── _breadcrumb.scss
│ │ │ │ │ ├── _mixins.scss
│ │ │ │ │ ├── _placeholders.scss
│ │ │ │ │ ├── _close.scss
│ │ │ │ │ ├── bootstrap.scss
│ │ │ │ │ ├── _images.scss
│ │ │ │ │ ├── _containers.scss
│ │ │ │ │ ├── _progress.scss
│ │ │ │ │ ├── _toasts.scss
│ │ │ │ │ ├── bootstrap-grid.scss
│ │ │ │ │ ├── _alert.scss
│ │ │ │ │ ├── _spinners.scss
│ │ │ │ │ ├── _type.scss
│ │ │ │ │ ├── utilities
│ │ │ │ │ └── _api.scss
│ │ │ │ │ ├── _pagination.scss
│ │ │ │ │ ├── _root.scss
│ │ │ │ │ ├── _offcanvas.scss
│ │ │ │ │ ├── _buttons.scss
│ │ │ │ │ ├── _tooltip.scss
│ │ │ │ │ ├── _accordion.scss
│ │ │ │ │ ├── _nav.scss
│ │ │ │ │ └── _button-group.scss
│ │ │ ├── favicon.ico
│ │ │ ├── js
│ │ │ │ └── site.js
│ │ │ └── css
│ │ │ │ └── site.css
│ │ ├── appsettings.json
│ │ ├── Models
│ │ │ └── ErrorViewModel.cs
│ │ ├── appsettings.Development.json
│ │ ├── ContosoTeamStats.csproj
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ ├── libman.json
│ │ ├── ContosoTeamStats.sln
│ │ ├── Startup.cs
│ │ └── Controllers
│ │ │ └── HomeController.cs
│ └── README.md
├── aspnet
│ ├── ContosoTeamStats
│ │ ├── Views
│ │ │ ├── _ViewStart.cshtml
│ │ │ ├── Home
│ │ │ │ ├── About.cshtml
│ │ │ │ ├── Contact.cshtml
│ │ │ │ ├── RedisCache.cshtml
│ │ │ │ └── Index.cshtml
│ │ │ ├── Shared
│ │ │ │ ├── Error.cshtml
│ │ │ │ └── _Layout.cshtml
│ │ │ └── Web.config
│ │ ├── Global.asax
│ │ ├── favicon.ico
│ │ ├── CacheSecrets.config
│ │ ├── App_Start
│ │ │ ├── FilterConfig.cs
│ │ │ ├── RouteConfig.cs
│ │ │ └── BundleConfig.cs
│ │ ├── Content
│ │ │ └── Site.css
│ │ ├── Global.asax.cs
│ │ ├── Web.Debug.config
│ │ ├── Web.Release.config
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── packages.config
│ │ ├── Controllers
│ │ │ └── HomeController.cs
│ │ └── Web.config
│ ├── ContosoTeamStats.sln
│ └── README.md
├── python
│ ├── media
│ │ └── install-redis-py.png
│ ├── PythonApplication1.py
│ └── README.md
├── dotnet
│ ├── Redistest
│ │ ├── CacheSecrets.config
│ │ ├── App.config
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── Redistest.csproj
│ │ └── Program.cs
│ ├── Redistest.sln
│ └── README.md
├── dotnet-core
│ ├── Redistest.csproj
│ ├── Redistest.sln
│ ├── README.md
│ └── Program.cs
├── java-redisson
│ ├── redis-redisson-test
│ │ ├── src
│ │ │ └── main
│ │ │ │ └── java
│ │ │ │ └── example
│ │ │ │ └── demo
│ │ │ │ └── App.java
│ │ └── pom.xml
│ └── README.md
└── java
│ ├── redistest
│ ├── src
│ │ └── main
│ │ │ └── java
│ │ │ └── example
│ │ │ └── demo
│ │ │ └── App.java
│ └── pom.xml
│ └── README.md
├── .gitignore
├── samples
└── java
│ ├── .gitignore
│ └── ClientSamples
│ ├── pom.xml
│ └── src
│ └── main
│ └── java
│ ├── jedis
│ ├── PoolUsage.java
│ └── ClusterUsage.java
│ ├── common
│ ├── Utils.java
│ └── RedisClientConfig.java
│ └── lettuce
│ └── BasicUsage.java
├── .github
├── CODE_OF_CONDUCT.md
├── PULL_REQUEST_TEMPLATE.md
└── ISSUE_TEMPLATE.md
├── LICENSE
├── azure-pipelines.yml
├── README.md
└── CONTRIBUTING.md
/quickstart/nodejs/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "redis": "^4.5.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/quickstart/aspnet-core/ContosoTeamStats/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "_Layout";
3 | }
4 |
--------------------------------------------------------------------------------
/quickstart/aspnet/ContosoTeamStats/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
4 |
--------------------------------------------------------------------------------
/quickstart/aspnet-core/ContosoTeamStats/wwwroot/lib/bootstrap/scss/helpers/_clearfix.scss:
--------------------------------------------------------------------------------
1 | .clearfix {
2 | @include clearfix();
3 | }
4 |
--------------------------------------------------------------------------------
/quickstart/aspnet/ContosoTeamStats/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="ContosoTeamStats.MvcApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/quickstart/aspnet/ContosoTeamStats/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doggy8088/azure-cache-redis-samples/main/quickstart/aspnet/ContosoTeamStats/favicon.ico
--------------------------------------------------------------------------------
/quickstart/python/media/install-redis-py.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doggy8088/azure-cache-redis-samples/main/quickstart/python/media/install-redis-py.png
--------------------------------------------------------------------------------
/quickstart/dotnet/Redistest/CacheSecrets.config:
--------------------------------------------------------------------------------
1 |
Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /quickstart/aspnet/ContosoTeamStats/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "About"; 3 | } 4 |Use this area to provide additional information.
8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | 4 | ; Compiled Programs 5 | *.exe 6 | *.dll 7 | 8 | ; Visual Studio user state 9 | *.user 10 | *.suo 11 | .vs 12 | 13 | ; VC++/C# debug info files 14 | *.idb 15 | *.pdb 16 | *.sdf 17 | 18 | packages 19 | 20 | target/ -------------------------------------------------------------------------------- /quickstart/aspnet-core/ContosoTeamStats/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /quickstart/aspnet-core/ContosoTeamStats/wwwroot/lib/bootstrap/scss/helpers/_vr.scss: -------------------------------------------------------------------------------- 1 | .vr { 2 | display: inline-block; 3 | align-self: stretch; 4 | width: 1px; 5 | min-height: 1em; 6 | background-color: currentColor; 7 | opacity: $hr-opacity; 8 | } 9 | -------------------------------------------------------------------------------- /quickstart/aspnet-core/ContosoTeamStats/wwwroot/lib/bootstrap/scss/helpers/_visually-hidden.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Visually hidden 3 | // 4 | 5 | .visually-hidden, 6 | .visually-hidden-focusable:not(:focus):not(:focus-within) { 7 | @include visually-hidden(); 8 | } 9 | -------------------------------------------------------------------------------- /quickstart/aspnet-core/ContosoTeamStats/wwwroot/lib/bootstrap/scss/mixins/_clearfix.scss: -------------------------------------------------------------------------------- 1 | // scss-docs-start clearfix 2 | @mixin clearfix() { 3 | &::after { 4 | display: block; 5 | clear: both; 6 | content: ""; 7 | } 8 | } 9 | // scss-docs-end clearfix 10 | -------------------------------------------------------------------------------- /quickstart/aspnet-core/ContosoTeamStats/wwwroot/lib/bootstrap/scss/mixins/_lists.scss: -------------------------------------------------------------------------------- 1 | // Lists 2 | 3 | // Unstyled keeps list items block level, just removes default browser padding and list-style 4 | @mixin list-unstyled { 5 | padding-left: 0; 6 | list-style: none; 7 | } 8 | -------------------------------------------------------------------------------- /quickstart/aspnet-core/ContosoTeamStats/wwwroot/lib/bootstrap/scss/mixins/_color-scheme.scss: -------------------------------------------------------------------------------- 1 | // scss-docs-start mixin-color-scheme 2 | @mixin color-scheme($name) { 3 | @media (prefers-color-scheme: #{$name}) { 4 | @content; 5 | } 6 | } 7 | // scss-docs-end mixin-color-scheme 8 | -------------------------------------------------------------------------------- /quickstart/aspnet-core/ContosoTeamStats/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /quickstart/aspnet-core/ContosoTeamStats/wwwroot/lib/bootstrap/scss/mixins/_text-truncate.scss: -------------------------------------------------------------------------------- 1 | // Text truncate 2 | // Requires inline-block or block for proper styling 3 | 4 | @mixin text-truncate() { 5 | overflow: hidden; 6 | text-overflow: ellipsis; 7 | white-space: nowrap; 8 | } 9 | -------------------------------------------------------------------------------- /quickstart/aspnet-core/ContosoTeamStats/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification 2 | // for details on configuring this project to bundle and minify static web assets. 3 | 4 | // Write your JavaScript code. 5 | -------------------------------------------------------------------------------- /quickstart/dotnet/Redistest/App.config: -------------------------------------------------------------------------------- 1 | 2 |Learn about building Web apps with ASP.NET Core.
8 || Command | 10 |Result | 11 |
|---|---|
| @ViewBag.command1 | 14 |@ViewBag.command1Result |
15 |
| @ViewBag.command2 | 18 |@ViewBag.command2Result |
19 |
| @ViewBag.command3 | 22 |@ViewBag.command3Result |
23 |
| @ViewBag.command4 | 26 |@ViewBag.command4Result |
27 |
| @ViewBag.command5 | 30 |@ViewBag.command5Result |
31 |
| Command | 11 |Result | 12 |
|---|---|
| @ViewBag.command1 | 15 |@ViewBag.command1Result |
16 |
| @ViewBag.command2 | 19 |@ViewBag.command2Result |
20 |
| @ViewBag.command3 | 23 |@ViewBag.command3Result |
24 |
| @ViewBag.command4 | 27 |@ViewBag.command4Result |
28 |
| @ViewBag.command5 | 31 |@ViewBag.command5Result |
32 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 4 | > Please provide us with the following information: 5 | > --------------------------------------------------------------- 6 | 7 | ### This issue is for a: (mark with an `x`) 8 | ``` 9 | - [ ] bug report -> please search issues before submitting 10 | - [ ] feature request 11 | - [ ] documentation issue or request 12 | - [ ] regression (a behavior that used to work and stopped in a new release) 13 | ``` 14 | 15 | ### Minimal steps to reproduce 16 | > 17 | 18 | ### Any log messages given by the failure 19 | > 20 | 21 | ### Expected/desired behavior 22 | > 23 | 24 | ### OS and Version? 25 | > Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) 26 | 27 | ### Versions 28 | > 29 | 30 | ### Mention any other details that might be useful 31 | 32 | > --------------------------------------------------------------- 33 | > Thanks! We'll be in touch soon. 34 | -------------------------------------------------------------------------------- /quickstart/aspnet-core/ContosoTeamStats/wwwroot/lib/bootstrap/scss/_breadcrumb.scss: -------------------------------------------------------------------------------- 1 | .breadcrumb { 2 | display: flex; 3 | flex-wrap: wrap; 4 | padding: $breadcrumb-padding-y $breadcrumb-padding-x; 5 | margin-bottom: $breadcrumb-margin-bottom; 6 | @include font-size($breadcrumb-font-size); 7 | list-style: none; 8 | background-color: $breadcrumb-bg; 9 | @include border-radius($breadcrumb-border-radius); 10 | } 11 | 12 | .breadcrumb-item { 13 | // The separator between breadcrumbs (by default, a forward-slash: "/") 14 | + .breadcrumb-item { 15 | padding-left: $breadcrumb-item-padding-x; 16 | 17 | &::before { 18 | float: left; // Suppress inline spacings and underlining of the separator 19 | padding-right: $breadcrumb-item-padding-x; 20 | color: $breadcrumb-divider-color; 21 | content: var(--#{$variable-prefix}breadcrumb-divider, escape-svg($breadcrumb-divider)) #{"/* rtl:"} var(--#{$variable-prefix}breadcrumb-divider, escape-svg($breadcrumb-divider-flipped)) #{"*/"}; 22 | } 23 | } 24 | 25 | &.active { 26 | color: $breadcrumb-active-color; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /quickstart/aspnet-core/ContosoTeamStats/wwwroot/lib/bootstrap/scss/mixins/_table-variants.scss: -------------------------------------------------------------------------------- 1 | // scss-docs-start table-variant 2 | @mixin table-variant($state, $background) { 3 | .table-#{$state} { 4 | $color: color-contrast(opaque($body-bg, $background)); 5 | $hover-bg: mix($color, $background, percentage($table-hover-bg-factor)); 6 | $striped-bg: mix($color, $background, percentage($table-striped-bg-factor)); 7 | $active-bg: mix($color, $background, percentage($table-active-bg-factor)); 8 | 9 | --#{$variable-prefix}table-bg: #{$background}; 10 | --#{$variable-prefix}table-striped-bg: #{$striped-bg}; 11 | --#{$variable-prefix}table-striped-color: #{color-contrast($striped-bg)}; 12 | --#{$variable-prefix}table-active-bg: #{$active-bg}; 13 | --#{$variable-prefix}table-active-color: #{color-contrast($active-bg)}; 14 | --#{$variable-prefix}table-hover-bg: #{$hover-bg}; 15 | --#{$variable-prefix}table-hover-color: #{color-contrast($hover-bg)}; 16 | 17 | color: $color; 18 | border-color: mix($color, $background, percentage($table-border-factor)); 19 | } 20 | } 21 | // scss-docs-end table-variant 22 | -------------------------------------------------------------------------------- /quickstart/aspnet-core/ContosoTeamStats/wwwroot/lib/bootstrap/scss/_mixins.scss: -------------------------------------------------------------------------------- 1 | // Toggles 2 | // 3 | // Used in conjunction with global variables to enable certain theme features. 4 | 5 | // Vendor 6 | @import "vendor/rfs"; 7 | 8 | // Deprecate 9 | @import "mixins/deprecate"; 10 | 11 | // Helpers 12 | @import "mixins/breakpoints"; 13 | @import "mixins/color-scheme"; 14 | @import "mixins/image"; 15 | @import "mixins/resize"; 16 | @import "mixins/visually-hidden"; 17 | @import "mixins/reset-text"; 18 | @import "mixins/text-truncate"; 19 | 20 | // Utilities 21 | @import "mixins/utilities"; 22 | 23 | // Components 24 | @import "mixins/alert"; 25 | @import "mixins/backdrop"; 26 | @import "mixins/buttons"; 27 | @import "mixins/caret"; 28 | @import "mixins/pagination"; 29 | @import "mixins/lists"; 30 | @import "mixins/list-group"; 31 | @import "mixins/forms"; 32 | @import "mixins/table-variants"; 33 | 34 | // Skins 35 | @import "mixins/border-radius"; 36 | @import "mixins/box-shadow"; 37 | @import "mixins/gradients"; 38 | @import "mixins/transition"; 39 | 40 | // Layout 41 | @import "mixins/clearfix"; 42 | @import "mixins/container"; 43 | @import "mixins/grid"; 44 | -------------------------------------------------------------------------------- /quickstart/aspnet-core/ContosoTeamStats/wwwroot/lib/bootstrap/scss/_placeholders.scss: -------------------------------------------------------------------------------- 1 | .placeholder { 2 | display: inline-block; 3 | min-height: 1em; 4 | vertical-align: middle; 5 | cursor: wait; 6 | background-color: currentColor; 7 | opacity: $placeholder-opacity-max; 8 | 9 | &.btn::before { 10 | display: inline-block; 11 | content: ""; 12 | } 13 | } 14 | 15 | // Sizing 16 | .placeholder-xs { 17 | min-height: .6em; 18 | } 19 | 20 | .placeholder-sm { 21 | min-height: .8em; 22 | } 23 | 24 | .placeholder-lg { 25 | min-height: 1.2em; 26 | } 27 | 28 | // Animation 29 | .placeholder-glow { 30 | .placeholder { 31 | animation: placeholder-glow 2s ease-in-out infinite; 32 | } 33 | } 34 | 35 | @keyframes placeholder-glow { 36 | 50% { 37 | opacity: $placeholder-opacity-min; 38 | } 39 | } 40 | 41 | .placeholder-wave { 42 | mask-image: linear-gradient(130deg, $black 55%, rgba(0, 0, 0, (1 - $placeholder-opacity-min)) 75%, $black 95%); 43 | mask-size: 200% 100%; 44 | animation: placeholder-wave 2s linear infinite; 45 | } 46 | 47 | @keyframes placeholder-wave { 48 | 100% { 49 | mask-position: -200% 0%; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /samples/java/ClientSamples/pom.xml: -------------------------------------------------------------------------------- 1 | 2 |