Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
f316553b
Commit
f316553b
authored
Apr 16, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use memcached api instead of memcache.
parent
5d52da69
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
memcached.php
laravel/cache/drivers/memcached.php
+4
-4
memcached.php
laravel/memcached.php
+2
-2
No files found.
laravel/cache/drivers/memcached.php
View file @
f316553b
<?php
namespace
Laravel\Cache\Drivers
;
use
Memcache
;
<?php
namespace
Laravel\Cache\Drivers
;
use
Memcache
d
;
class
Memcached
extends
Driver
{
class
Memcached
extends
Driver
{
/**
/**
* The Memcache instance.
* The Memcache instance.
*
*
* @var Memcache
* @var Memcache
d
*/
*/
protected
$memcache
;
protected
$memcache
;
...
@@ -19,10 +19,10 @@ class Memcached extends Driver {
...
@@ -19,10 +19,10 @@ class Memcached extends Driver {
/**
/**
* Create a new Memcached cache driver instance.
* Create a new Memcached cache driver instance.
*
*
* @param Memcache $memcache
* @param Memcache
d
$memcache
* @return void
* @return void
*/
*/
public
function
__construct
(
Memcache
$memcache
,
$key
)
public
function
__construct
(
Memcache
d
$memcache
,
$key
)
{
{
$this
->
key
=
$key
;
$this
->
key
=
$key
;
$this
->
memcache
=
$memcache
;
$this
->
memcache
=
$memcache
;
...
...
laravel/memcached.php
View file @
f316553b
...
@@ -40,7 +40,7 @@ class Memcached {
...
@@ -40,7 +40,7 @@ class Memcached {
*/
*/
protected
static
function
connect
(
$servers
)
protected
static
function
connect
(
$servers
)
{
{
$memcache
=
new
\Memcache
;
$memcache
=
new
\Memcache
d
;
foreach
(
$servers
as
$server
)
foreach
(
$servers
as
$server
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment