-
-
Notifications
You must be signed in to change notification settings - Fork 456
/
Copy pathDriverIO.php
82 lines (66 loc) · 1.5 KB
/
DriverIO.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/**
*
* This file is part of Phpfastcache.
*
* @license MIT License (MIT)
*
* For full copyright and license information, please see the docs/CREDITS.txt and LICENCE files.
*
* @author Georges.L (Geolim4) <[email protected]>
* @author Contributors https://github.com/PHPSocialNetwork/phpfastcache/graphs/contributors
*/
declare(strict_types=1);
namespace Phpfastcache\Entities;
class DriverIO
{
protected int $writeHit = 0;
protected int $readHit = 0;
protected int $readMiss = 0;
public function getWriteHit(): int
{
return $this->writeHit;
}
/**
* @param int $writeHit
* @return DriverIO
*/
public function setWriteHit(int $writeHit): DriverIO
{
$this->writeHit = $writeHit;
return $this;
}
public function incWriteHit(): DriverIO
{
$this->writeHit++;
return $this;
}
public function getReadHit(): int
{
return $this->readHit;
}
public function setReadHit(int $readHit): DriverIO
{
$this->readHit = $readHit;
return $this;
}
public function incReadHit(): DriverIO
{
$this->readHit++;
return $this;
}
public function getReadMiss(): int
{
return $this->readMiss;
}
public function setReadMiss(int $readMiss): DriverIO
{
$this->readMiss = $readMiss;
return $this;
}
public function incReadMiss(): DriverIO
{
$this->readMiss++;
return $this;
}
}