Skip to content

Commit

Permalink
Merge pull request #21 from zf-fr/second-level-cache
Browse files Browse the repository at this point in the history
Add second level cache
  • Loading branch information
bakura10 committed Jan 25, 2015
2 parents 53ce3e6 + 4269605 commit 3c989b6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"zendframework/zend-mvc": "~2.2",
"zendframework/zend-console": "~2.2",
"zendframework/zend-stdlib": "~2.2",
"doctrine/doctrine-module": "~0.8",
"zfr/zfr-oauth2-server": "0.6.*"
"doctrine/doctrine-module": "~0.9",
"zfr/zfr-oauth2-server": "0.7.*"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
Expand Down
18 changes: 18 additions & 0 deletions config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,24 @@
],
],
],

'configuration' => [
'orm_default' => [
'second_level_cache' => [
'enabled' => true,

'regions' => [
'oauth_token_region' => [
'lifetime' => 3600
],

'oauth_scope_region' => [
'lifetime' => 300
]
]
]
]
]
],

'router' => [
Expand Down

0 comments on commit 3c989b6

Please sign in to comment.